File tree Expand file tree Collapse file tree 5 files changed +33
-9
lines changed Expand file tree Collapse file tree 5 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 23
23
compiler : [{c: gcc, cxx: g++}]
24
24
- os : ' Windows'
25
25
compiler : [{c: cl, cxx: cl}]
26
- extra_arg : " -DCMAKE_TOOLCHAIN_FILE=C:/Users/Administrator/repo/vpckg /scripts/buildsystems/vpckg.cmake"
26
+ extra_arg : " -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/vcpkg /scripts/buildsystems/vpckg.cmake"
27
27
28
28
runs-on : ["DSS-LEVEL_ZERO", "DSS-${{matrix.os}}"]
29
29
35
35
if : matrix.os == 'Ubuntu'
36
36
run : .github/scripts/get_system_info.sh
37
37
38
+ - name : Initialize vcpkg
39
+ if : matrix.os == 'Windows'
40
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
41
+ with :
42
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
43
+ vcpkgDirectory : ${{github.workspace}}/build/vcpkg
44
+ vcpkgJsonGlob : ' **/vcpkg.json'
45
+
46
+ - name : Install dependencies
47
+ if : matrix.os == 'Windows'
48
+ run : |
49
+ vcpkg install
50
+ vpckg integrate install
51
+
38
52
- name : Configure build
39
53
run : >
40
54
cmake
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 } /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@
You can’t perform that action at this time.
0 commit comments