-
Notifications
You must be signed in to change notification settings - Fork 765
added build support on Ampere #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,8 +117,17 @@ nanovdb_example(NAME "ex_coarsen_nanovdb_cuda" OPENVDB) | |
| nanovdb_example(NAME "ex_mesh_to_grid_cuda" OPENVDB) | ||
|
|
||
| if(CUDAToolkit_FOUND) | ||
| nanovdb_example(NAME "ex_make_mgpu_nanovdb") # requires cuRAND | ||
| target_link_libraries(ex_make_mgpu_nanovdb PRIVATE CUDA::curand) | ||
| # ex_make_mgpu_nanovdb uses TF32 WMMA which requires SM_80+ (Ampere or newer) | ||
| execute_process( | ||
| COMMAND bash -c "nvidia-smi --query-gpu=compute_cap --format=csv,noheader 2>/dev/null | sort -n | tail -1 | tr -d '.'" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I asked Codex to scan |
||
| OUTPUT_VARIABLE _max_cuda_arch OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| if(_max_cuda_arch GREATER_EQUAL 80) | ||
| nanovdb_example(NAME "ex_make_mgpu_nanovdb") # requires cuRAND and SM_80+ (TF32 WMMA) | ||
| target_link_libraries(ex_make_mgpu_nanovdb PRIVATE CUDA::curand) | ||
| else() | ||
| message(STATUS "Skipping ex_make_mgpu_nanovdb: requires SM_80+ (TF32), detected SM_${_max_cuda_arch}") | ||
| endif() | ||
| unset(_max_cuda_arch) | ||
| endif() | ||
|
|
||
| if(NANOVDB_USE_MAGICAVOXEL) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you're building on a machine that doesn't have a GPU and going to run it on an SM >=8.0 machine? Or are we assuming all examples are built/run on the same machine and/or they're not used as CI tests (which might have this behaviour)?