File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ set(DNNL_GPU_RUNTIME "@DNNL_GPU_RUNTIME@")
21
21
22
22
set (DNNL_BLAS_VENDOR "@DNNL_BLAS_VENDOR@" )
23
23
24
+ set (DNNL_GPU_VENDOR "@DNNL_GPU_VENDOR@" )
25
+
24
26
if (DNNL_CPU_THREADING_RUNTIME STREQUAL "TBB" )
25
27
# Try to find TBB using a TBB-provided CMake config file.
26
28
find_package (TBB QUIET COMPONENTS tbb)
@@ -62,6 +64,14 @@ check_required_components("@LIB_PACKAGE_NAME@")
62
64
63
65
if (DNNL_CPU_RUNTIME STREQUAL "SYCL" OR DNNL_CPU_RUNTIME STREQUAL "DPCPP" OR
64
66
DNNL_GPU_RUNTIME STREQUAL "SYCL" OR DNNL_GPU_RUNTIME STREQUAL "DPCPP" )
67
+ if (DNNL_GPU_VENDOR STREQUAL "NVIDIA" )
68
+ set (DNNL_ORIGINAL_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} )
69
+ list (INSERT CMAKE_MODULE_PATH 0 ${PACKAGE_PREFIX_DIR} /@LIB_CONFIG_INSTALL_DIR@)
70
+ find_package (cuDNN REQUIRED)
71
+ find_package (cuBLAS REQUIRED)
72
+ find_package (cublasLt REQUIRED)
73
+ set (CMAKE_MODULE_PATH ${DNNL_ORIGINAL_CMAKE_MODULE_PATH} )
74
+ endif ()
65
75
set (DNNL_COMPILE_FLAGS "-fsycl" )
66
76
@HANDLE_BUNDLE_DEBUG_SYCL_CONFIGURATION@
67
77
endif ()
Original file line number Diff line number Diff line change @@ -305,6 +305,14 @@ if(DNNL_BLAS_VENDOR STREQUAL "ACCELERATE")
305
305
DESTINATION ${LIB_CONFIG_INSTALL_DIR} )
306
306
endif ()
307
307
308
+ if (DNNL_SYCL_CUDA)
309
+ install (FILES
310
+ "../cmake/FindcuBLAS.cmake"
311
+ "../cmake/FindcublasLt.cmake"
312
+ "../cmake/FindcuDNN.cmake"
313
+ DESTINATION ${LIB_CONFIG_INSTALL_DIR} )
314
+ endif ()
315
+
308
316
# On Windows we need to add dnnl.dll path to CTESTCONFIG_PATH which is later
309
317
# passed to ctest and Visual Studio solutions
310
318
if (WIN32 )
You can’t perform that action at this time.
0 commit comments