Unverified Commit fdeda8a8 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[dev] update cuda cmake (#6574)

parent 12f02c3c
...@@ -16,12 +16,11 @@ if (CUDA_VERSION_MAJOR GREATER_EQUAL "11") ...@@ -16,12 +16,11 @@ if (CUDA_VERSION_MAJOR GREATER_EQUAL "11")
list(APPEND dgl_known_gpu_archs "80" "86") list(APPEND dgl_known_gpu_archs "80" "86")
set(dgl_cuda_arch_ptx "80" "86") set(dgl_cuda_arch_ptx "80" "86")
endif() endif()
# CMake 3.5 doesn't support VERSION_GREATER_EQUAL if (CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
if (NOT CUDA_VERSION VERSION_LESS "11.8")
list(APPEND dgl_known_gpu_archs "90") list(APPEND dgl_known_gpu_archs "90")
set(dgl_cuda_arch_ptx "90") set(dgl_cuda_arch_ptx "90")
endif() endif()
if (NOT CUDA_VERSION VERSION_LESS "12.0") if (CUDA_VERSION VERSION_GREATER_EQUAL "12.0")
list(REMOVE_ITEM dgl_known_gpu_archs "35") list(REMOVE_ITEM dgl_known_gpu_archs "35")
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment