File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ else()
11
11
set (UMF_BUILD_LEVEL_ZERO_PROVIDER OFF CACHE INTERNAL "Build Level Zero Provider" )
12
12
endif ()
13
13
14
+ if (UR_BUILD_ADAPTER_CUDA )
15
+ find_package (CUDA 10.1 REQUIRED )
16
+ set (UMF_BUILD_CUDA_PROVIDER ON CACHE INTERNAL "Build UMF CUDA provider" )
17
+ set (UMF_CUDA_INCLUDE_DIR "${CUDA_INCLUDE_DIRS} " CACHE INTERNAL "CUDA headers" )
18
+ else ()
19
+ set (UMF_BUILD_CUDA_PROVIDER OFF CACHE INTERNAL "Build UMF CUDA provider" )
20
+ endif ()
21
+
14
22
add_ur_library (ur_common STATIC
15
23
ur_util.cpp
16
24
ur_util.hpp
66
74
set (UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "Build UMF examples" )
67
75
set (UMF_BUILD_SHARED_LIBRARY ${UMF_BUILD_SHARED_LIBRARY} CACHE INTERNAL "Build UMF shared library" )
68
76
set (UMF_BUILD_LIBUMF_POOL_DISJOINT ON CACHE INTERNAL "Build Disjoint Pool" )
69
- set (UMF_BUILD_CUDA_PROVIDER ON CACHE INTERNAL "Build UMF CUDA provider" )
70
77
71
78
FetchContent_MakeAvailable (unified-memory-framework )
72
79
FetchContent_GetProperties (unified-memory-framework )
You can’t perform that action at this time.
0 commit comments