We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 415c8fc commit 4f36b55Copy full SHA for 4f36b55
libkineto/CMakeLists.txt
@@ -71,6 +71,19 @@ if(NOT LIBKINETO_NOCUPTI)
71
NO_DEFAULT_PATH)
72
endif()
73
74
+ if(NOT USE_CUPTI_SO AND NOT CUDA_cupti_static_LIBRARY)
75
+ find_library(CUDA_cupti_static_LIBRARY cupti_static PATHS ${CUDA_PATHS}
76
+ NO_DEFAULT_PATH)
77
+ endif()
78
79
+ if(NOT CUDA_cupti_static_LIBRARY)
80
+ if(WIN32)
81
+ message(WARNING "CUPTI is not static on Windows, switch to shared library")
82
+ set(USE_CUPTI_SO OFF)
83
+ else()
84
+ set(cupti_LIBRARY ${CUDA_cupti_static_LIBRARY})
85
86
+
87
if(USE_CUPTI_SO)
88
if(NOT CUDA_cupti_LIBRARY)
89
find_library(CUDA_cupti_LIBRARY cupti PATHS ${CUDA_PATHS}
0 commit comments