Update CMakeLists.txt (#473)
* Update CMakeLists.txt Add 128bit int support if using nvc++ to solve #310 @jeffhammond, would you please give it a try? * Update CMakeLists.txt correct copy paste error
This commit is contained in:
parent
71def2f084
commit
319a389f42
@ -334,6 +334,11 @@ if(CUDA_COMPILER MATCHES "[Cc]lang")
|
|||||||
link_libraries(nvidia::cudart)
|
link_libraries(nvidia::cudart)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Support for 128-bit integers if using NVIDIA C++ compiler
|
||||||
|
if (${CMAKE_CXX_COMPILER_ID} MATCHES "PGI" OR ${CMAKE_CXX_COMPILER_ID} MATCHES "NVHPC")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Mint128 ")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
|
||||||
# CMake 3.18 added support for CUDA_ARCHITECTURES target property. We will use this
|
# CMake 3.18 added support for CUDA_ARCHITECTURES target property. We will use this
|
||||||
# property for CMake 3.18+, so we request the NEW behavior for correct compatibility.
|
# property for CMake 3.18+, so we request the NEW behavior for correct compatibility.
|
||||||
|
Loading…
Reference in New Issue
Block a user