Skip to content

Commit 303f8cb

Browse files
committed
Rename the custom_provider example to custom_file_provider
Rename the directory of the example: - from custom_provider to custom_file_provider and rename the source code file of the example: - from file_provider.c to custom_file_provider.c Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent ebd6ac4 commit 303f8cb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

examples/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,12 @@ if(LINUX)
251251

252252
set_tests_properties(${EXAMPLE_NAME} PROPERTIES
253253
SKIP_RETURN_CODE ${UMF_TEST_SKIP_RETURN_CODE})
254-
set(EXAMPLE_NAME umf_example_file_provider)
254+
255+
set(EXAMPLE_NAME umf_example_custom_file_provider)
255256

256257
add_umf_executable(
257258
NAME ${EXAMPLE_NAME}
258-
SRCS custom_provider/file_provider.c
259+
SRCS custom_file_provider/custom_file_provider.c
259260
LIBS umf ${LIBHWLOC_LIBRARIES})
260261

261262
target_include_directories(

scripts/docs_config/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ TODO
127127
Custom memory provider
128128
==============================================================================
129129

130-
You can find the full examples code in the `examples/custom_provider/file_provider.c`_ file
130+
You can find the full examples code in the `examples/custom_file_provider/custom_file_provider.c`_ file
131131
in the UMF repository.
132132

133133
TODO
@@ -212,7 +212,7 @@ the :any:`umfCloseIPCHandle` function is called.
212212
.. _examples/level_zero_shared_memory/level_zero_shared_memory.c: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/level_zero_shared_memory/level_zero_shared_memory.c
213213
.. _examples/cuda_shared_memory/cuda_shared_memory.c: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/cuda_shared_memory/cuda_shared_memory.c
214214
.. _examples/ipc_level_zero/ipc_level_zero.c: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/ipc_level_zero/ipc_level_zero.c
215-
.. _examples/custom_provider/file_provider.c: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/custom_provider/file_provider.c
215+
.. _examples/custom_file_provider/custom_file_provider.c: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/custom_file_provider/custom_file_provider.c
216216
.. _examples/memspace: https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/memspace/
217217
.. _README: https://github.com/oneapi-src/unified-memory-framework/blob/main/README.md#memory-pool-managers
218218
.. _umf/ipc.h: https://github.com/oneapi-src/unified-memory-framework/blob/main/include/umf/ipc.h

0 commit comments

Comments
 (0)