File tree Expand file tree Collapse file tree 5 files changed +654
-0
lines changed Expand file tree Collapse file tree 5 files changed +654
-0
lines changed Original file line number Diff line number Diff line change @@ -165,3 +165,50 @@ else()
165
165
"IPC examples with UMF pool API are supported on Linux only - skipping"
166
166
)
167
167
endif ()
168
+
169
+ if (LINUX )
170
+ set (EXAMPLE_NAME umf_example_memspace_numa )
171
+
172
+ add_umf_executable (
173
+ NAME ${EXAMPLE_NAME}
174
+ SRCS memspace/memspace_numa.c
175
+ LIBS umf hwloc numa )
176
+
177
+ target_include_directories (
178
+ ${EXAMPLE_NAME} PRIVATE ${UMF_CMAKE_SOURCE_DIR} /src/utils
179
+ ${UMF_CMAKE_SOURCE_DIR} /include )
180
+
181
+ target_link_directories (${EXAMPLE_NAME} PRIVATE ${LIBHWLOC_LIBRARY_DIRS} )
182
+
183
+ set (EXAMPLE_NAME umf_example_memspace_hmat )
184
+
185
+ add_umf_executable (
186
+ NAME ${EXAMPLE_NAME}
187
+ SRCS memspace/memspace_hmat.c
188
+ LIBS umf hwloc numa )
189
+
190
+ target_include_directories (
191
+ ${EXAMPLE_NAME} PRIVATE ${UMF_CMAKE_SOURCE_DIR} /src/utils
192
+ ${UMF_CMAKE_SOURCE_DIR} /include )
193
+
194
+ target_link_directories (${EXAMPLE_NAME} PRIVATE ${LIBHWLOC_LIBRARY_DIRS} )
195
+
196
+ set (EXAMPLE_NAME umf_example_file_provider )
197
+
198
+ add_umf_executable (
199
+ NAME ${EXAMPLE_NAME}
200
+ SRCS custom_provider/file_provider.c
201
+ LIBS umf hwloc )
202
+
203
+ target_include_directories (
204
+ ${EXAMPLE_NAME} PRIVATE ${UMF_CMAKE_SOURCE_DIR} /src/utils
205
+ ${UMF_CMAKE_SOURCE_DIR} /include )
206
+
207
+ target_link_directories (${EXAMPLE_NAME} PRIVATE ${LIBHWLOC_LIBRARY_DIRS} )
208
+
209
+ else ()
210
+ message (
211
+ STATUS "Memspace examples API are supported on Linux only - skipping" )
212
+ message (
213
+ STATUS "File provider example is supported on Linux only - skipping" )
214
+ endif ()
You can’t perform that action at this time.
0 commit comments