[ISSUE-262, 85] Unfix the Compute Capabilities across CMakeLists, NVCC Compiler Options#921
Open
stardriftfx wants to merge 5 commits intoSharedDevelopmentfrom
Open
Conversation
…t user-specified, documentation - wiki page on GPU Arch levels and their differences
This was
linked to
issues
Mar 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Graphitti’s GPU build configuration to make CUDA architecture targeting more flexible, and adds developer documentation describing GPU architecture / compute capability levels.
Changes:
- Change default
TARGET_ARCHbehavior to prefer a local-machine (“native”) target when not specified. - Update NVCC gencode flag handling (real + virtual/PTX) in the CUDA-enabled CMake path.
- Add
docs/Developer/GPUArchLevels.mddocumenting supported GPU architectures and recommendedTARGET_ARCHvalues.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
CMakeLists.txt |
Adjusts CUDA architecture selection defaults and NVCC compiler flag configuration. |
docs/Developer/GPUArchLevels.md |
Adds developer-facing reference on GPU architecture levels and target selection. |
Comment on lines
38
to
41
| if(NOT DEFINED TARGET_ARCH) | ||
| set(TARGET_ARCH 37) | ||
| # If target not specified by user, use local machine's GPU architecture | ||
| set(TARGET_ARCH "native") | ||
| endif() |
Contributor
Author
There was a problem hiding this comment.
Tests passed successfully though.
Contributor
There was a problem hiding this comment.
This generates worrisome warnings that don't exist previously:
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.
CUDA_ARCHITECTURES is empty for target "Core".
This warning is for project developers. Use -Wno-dev to suppress it.```
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
stiber
requested changes
Mar 18, 2026
| @@ -0,0 +1,41 @@ | |||
| # GPU Architecture Levels | |||
Contributor
There was a problem hiding this comment.
This doesn't appear to be linked in to the documentation.
Comment on lines
38
to
41
| if(NOT DEFINED TARGET_ARCH) | ||
| set(TARGET_ARCH 37) | ||
| # If target not specified by user, use local machine's GPU architecture | ||
| set(TARGET_ARCH "native") | ||
| endif() |
Contributor
There was a problem hiding this comment.
This generates worrisome warnings that don't exist previously:
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.
CUDA_ARCHITECTURES is empty for target "Core".
This warning is for project developers. Use -Wno-dev to suppress it.```
…https://github.com/UWB-Biocomputing/Graphitti into 262-unfix-the-compute-capabilities-across-cmakelists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #262, #85
Description
Checklist (Mandatory for new features)
Testing (Mandatory for all changes)
test-medium-connected.xmlPassedtest-large-long.xmlPassed