Skip to content

Commit b5725be

Browse files
committed
CMakeList.txt: suggest setting CUDA architecture
1 parent 7bbebca commit b5725be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if(WIN32)
1919
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
2020
endif()
2121

22+
if (CMAKE_CUDA_ARCHITECTURES MATCHES OFF)
23+
message(NOTICE "You may want to set CUDA architecture, suggested `-DCMAKE_CUDA_ARCHITECTURES=native`")
24+
endif()
25+
2226
cmake_policy(SET CMP0010 NEW) # error on undefined variable
2327

2428
set(CPACK_PACKAGE_INSTALL_DIRECTORY "gpujpeg") # may be removed when version will be explicitly defined

0 commit comments

Comments
 (0)