Skip to content

Commit 10b0aec

Browse files
Merge pull request #1524 from lplewa/ctl_split
The last CTL patch :)
2 parents 9869d0e + e2ba141 commit 10b0aec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3237
-624
lines changed

.github/workflows/reusable_compatibility.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,16 @@ jobs:
102102
UMF_LOG: level:warning;flush:debug;output:stderr;pid:no
103103
LD_LIBRARY_PATH: ${{github.workspace}}/latest_version/build/lib/
104104
run: |
105-
ctest --verbose -E "test_memoryProvider"
105+
ctest --verbose -E "test_memoryProvider|test_disjoint_pool"
106+
107+
- name: Run disabled tests individually with latest UMF libs (warnings enabled)
108+
working-directory: ${{github.workspace}}/tag_version/build
109+
env:
110+
UMF_LOG: level:warning;flush:debug;output:stderr;pid:no
111+
LD_LIBRARY_PATH: ${{github.workspace}}/latest_version/build/lib/
112+
run: |
106113
test/test_memoryProvider --gtest_filter="-*Trace"
114+
test/test_disjoint_pool --gtest_filter="-test.internals"
107115
108116
# Browse all folders in the examples directory, build them using the
109117
# latest UMF version, and run them, excluding those in the exclude list.
@@ -228,10 +236,12 @@ jobs:
228236
env:
229237
UMF_LOG: level:warning;flush:debug;output:stderr;pid:no
230238
run: |
239+
$env:UMF_LOG="level:warning;flush:debug;output:stderr;pid:no"
231240
cp ${{github.workspace}}/latest_version/build/bin/Debug/umf.dll ${{github.workspace}}/tag_version/build/bin/Debug/umf.dll
232-
ctest -C Debug --verbose -E "test_memoryProvider"
241+
ctest -C Debug --verbose -E "test_memoryProvider|test_disjoint_pool"
233242
$env:Path = "${{github.workspace}}/tag_version/build/bin/Debug;${{env.VCPKG_BIN_PATH}};$env:Path"
234243
test/Debug/test_memoryProvider.exe --gtest_filter="-*Trace"
244+
test/Debug/test_disjoint_pool.exe --gtest_filter="-test.internals"
235245
236246
# Browse all folders in the examples directory, build them using the
237247
# latest UMF version, and run them, excluding those in the exclude list.
@@ -373,8 +383,16 @@ jobs:
373383
UMF_LOG: level:warning;flush:debug;output:stderr;pid:no
374384
LD_LIBRARY_PATH: ${{github.workspace}}/latest_version/build/lib/
375385
run: |
376-
ctest --verbose -E "test_memoryProvider"
386+
ctest --verbose -E "test_memoryProvider|test_disjoint_pool"
387+
388+
- name: Run disabled tests individually with latest UMF libs (warnings enabled)
389+
working-directory: ${{github.workspace}}/tag_version/build
390+
env:
391+
UMF_LOG: level:warning;flush:debug;output:stderr;pid:no
392+
LD_LIBRARY_PATH: ${{github.workspace}}/latest_version/build/lib/
393+
run: |
377394
test/test_memoryProvider --gtest_filter="-*Trace"
395+
test/test_disjoint_pool --gtest_filter="-test.internals"
378396
379397
# Browse all folders in the examples directory, build them using the
380398
# latest UMF version, and run them, excluding those in the exclude list.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ documentation, which includes the code of the
2121
[basic example](https://github.com/oneapi-src/unified-memory-framework/blob/main/examples/basic/basic.c).
2222
There are also more advanced examples that allocate USM memory from the [Level Zero device](examples/level_zero_shared_memory/level_zero_shared_memory.c) using the Level Zero API and UMF Level Zero memory provider and [CUDA device](examples/cuda_shared_memory/cuda_shared_memory.c) using the CUDA API and UMF CUDA memory provider.
2323

24+
UMF's experimental CTL API is showcased in the [CTL example](examples/ctl/ctl.c),
25+
which explores provider and pool statistics, and in the [custom CTL example](examples/ctl/custom_ctl.c), which wires CTL support into a custom memory provider. These examples rely on experimental headers which may change in future releases.
26+
2427
## Build
2528

2629
### Requirements

0 commit comments

Comments
 (0)