File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,17 @@ if(UMF_BUILD_EXAMPLES)
254
254
add_subdirectory (examples )
255
255
endif ()
256
256
257
+ # Conditional configuration for Level Zero provider
258
+ if (UMF_BUILD_LEVEL_ZERO_PROVIDER )
259
+ set (OPTIONAL_SYMBOLS "umfLevelZeroMemoryProviderOps" )
260
+ else ()
261
+ set (OPTIONAL_SYMBOLS "" )
262
+ endif ()
263
+
264
+ # Configure the DEF file based on whether Level Zero provider is built
265
+ configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /src/libumf.def"
266
+ "${CMAKE_CURRENT_BINARY_DIR} /src/libumf.def" @ONLY )
267
+
257
268
if (UMF_FORMAT_CODE_STYLE )
258
269
find_program (CLANG_FORMAT NAMES clang-format-15 clang-format-15.0
259
270
clang-format )
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ A memory provider that provides memory from an operating system.
136
136
Required packages for tests (Linux-only yet):
137
137
- libnuma-dev
138
138
139
- #### Level Zero memory provider (Linux-only yet)
139
+ #### Level Zero memory provider
140
140
141
141
A memory provider that provides memory from L0 device.
142
142
@@ -147,11 +147,10 @@ A memory provider that provides memory from L0 device.
147
147
148
148
Additionally, required for tests:
149
149
150
- 3 ) Linux OS
151
- 4 ) The ` UMF_BUILD_GPU_TESTS ` option turned ` ON `
152
- 5 ) System with Level Zero compatible GPU
153
- 6 ) Required packages:
154
- - liblevel-zero-dev
150
+ 3 ) The ` UMF_BUILD_GPU_TESTS ` option turned ` ON `
151
+ 4 ) System with Level Zero compatible GPU
152
+ 5 ) Required packages:
153
+ - liblevel-zero-dev (Linux) or level-zero-sdk (Windows)
155
154
156
155
### Memory pool managers
157
156
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ if(UMF_BUILD_SHARED_LIBRARY)
106
106
SRCS ${UMF_SOURCES}
107
107
LIBS ${UMF_LIBS}
108
108
LINUX_MAP_FILE ${CMAKE_CURRENT_SOURCE_DIR} /libumf.map
109
- WINDOWS_DEF_FILE ${CMAKE_CURRENT_SOURCE_DIR} /libumf.def )
109
+ WINDOWS_DEF_FILE ${CMAKE_CURRENT_BINARY_DIR} /src /libumf.def )
110
110
set (UMF_PRIVATE_COMPILE_DEFINITIONS ${UMF_PRIVATE_COMPILE_DEFINITIONS}
111
111
"UMF_SHARED_LIBRARY" )
112
112
set_target_properties (umf PROPERTIES RUNTIME_OUTPUT_DIRECTORY
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ EXPORTS
14
14
umfFree
15
15
umfGetIPCHandle
16
16
umfGetLastFailedMemoryProvider
17
- umfLevelZeroMemoryProviderOps
18
17
umfMemoryProviderAlloc
19
18
umfMemoryProviderAllocationMerge
20
19
umfMemoryProviderAllocationSplit
@@ -50,3 +49,4 @@ EXPORTS
50
49
umfProxyPoolOps
51
50
umfPutIPCHandle
52
51
umfOsMemoryProviderOps
52
+ @OPTIONAL_SYMBOLS@
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ add_umf_library(
26
26
SRCS ${PROXY_SOURCES}
27
27
LIBS ${PROXY_LIBS}
28
28
LINUX_MAP_FILE ${CMAKE_CURRENT_SOURCE_DIR} /proxy_lib.map
29
- WINDOWS_DEF_FILE ${CMAKE_CURRENT_SOURCE_DIR} /proxy_lib.def )
29
+ WINDOWS_DEF_FILE ${CMAKE_CURRENT_BINARY_DIR} /src /proxy_lib.def )
30
30
31
31
add_library (${PROJECT_NAME} ::proxy ALIAS umf_proxy )
32
32
You can’t perform that action at this time.
0 commit comments