Skip to content

Add a new CMake extension to detect the CUDA architecture#794

Merged
mhucka merged 5 commits into
masterfrom
mh-support-cuda-in-cmakefiles
Jun 20, 2025
Merged

Add a new CMake extension to detect the CUDA architecture#794
mhucka merged 5 commits into
masterfrom
mh-support-cuda-in-cmakefiles

Conversation

@mhucka
Copy link
Copy Markdown
Collaborator

@mhucka mhucka commented Jun 20, 2025

If the user provides GPU architecture info, we use that; if not, we
use nvidia-smi to try to figure out what the GPU architecture is for
the current computer.

mhucka added 4 commits June 20, 2025 21:09
If the user provides GPU architecture info, we use that; if not, we
use `nvidia-smi` to try to figure out what the GPU architecture is for
the current computer.
The inconsistent mix of upper and lower case command names made it
harder to read this file.
The NVIDIA examples use this, and it seems likely to make things more
portable, so let's follow suit.
@mhucka mhucka marked this pull request as ready for review June 20, 2025 21:21
@mhucka mhucka requested review from fdmalone and pavoljuhas June 20, 2025 21:22
@mhucka mhucka enabled auto-merge (squash) June 20, 2025 22:39
@mhucka mhucka merged commit 62c1f8f into master Jun 20, 2025
48 checks passed
@mhucka mhucka deleted the mh-support-cuda-in-cmakefiles branch June 20, 2025 22:53
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.

2 participants