Skip to content

Commit 0de650c

Browse files
committed
TODO: temporary commit
1 parent a9f0fe8 commit 0de650c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,15 @@ jobs:
104104
- name: Build UMF
105105
run: cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j ${{matrix.number_of_processors}}
106106

107+
- name: Run LD_DEBUG tests
108+
working-directory: ${{env.BUILD_DIR}}
109+
run: |
110+
LD_DEBUG=files,libs ./test/umf_test-provider_level_zero --gtest_filter=test.TestDlOpen
111+
LD_DEBUG=files,libs ./test/umf_test-provider_level_zero_dlopen --gtest_filter=test.TestDlOpen
112+
107113
- name: Run tests
108114
working-directory: ${{env.BUILD_DIR}}
109-
run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
115+
run: LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH" ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
110116

111117
- name: Run examples
112118
working-directory: ${{env.BUILD_DIR}}

test/providers/provider_level_zero.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ TEST_F(test, FailMismatchedResidentHandlesCount) {
210210
umfLevelZeroMemoryProviderParamsDestroy(hParams);
211211
}
212212

213+
//TODO: REMOVE. Added to test L0 CI Runner
214+
TEST_F(test, TestDlOpen) {
215+
LevelZeroTestHelper l0TestHelper;
216+
ASSERT_NE(l0TestHelper.get_test_context(), nullptr);
217+
ASSERT_NE(l0TestHelper.get_test_device(), nullptr);
218+
void *handle =
219+
utils_open_library("libze_loader.so", UMF_UTIL_OPEN_LIBRARY_NO_LOAD);
220+
ASSERT_NE(handle, nullptr);
221+
}
222+
213223
class LevelZeroMemoryAccessor : public MemoryAccessor {
214224
public:
215225
LevelZeroMemoryAccessor(ze_context_handle_t hContext,

0 commit comments

Comments
 (0)