Skip to content

Conversation

@k-vanio
Copy link

@k-vanio k-vanio commented Aug 24, 2025

This PR introduces automatic GPU detection in the Makefile.
During the build, the system now checks for an available GPU and automatically retrieves the Compute Capability of the first detected GPU.

🔧 Main Changes

  • Added compute_cap.sh script to obtain the compute capability via nvidia-smi.

  • Integrated detection into the Makefile to:

    • Display the detected compute capability.
    • Produce a fatal error if no GPU is found.

✅ Benefits

  • Simplifies the build process in GPU-enabled environments.
  • Prevents misconfiguration and build errors caused by manual setup.
  • Improves portability across different environments (GPU / non-GPU).

@brunoaduarte
Copy link

brunoaduarte commented Oct 24, 2025

@vanio-k favor adicionar no compute_cap.sh

*"RTX 5070"*) echo "89" ;;  # NVIDIA GeForce RTX 5070 / 5070 Ti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants