Skip to content

Commit 70e8fc3

Browse files
committed
Add debug path for platform test CI
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent ac68e10 commit 70e8fc3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/adapters/level_zero/adapter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
265265
setEnvVar("ZE_ENABLE_PARAMETER_VALIDATION", "1");
266266
}
267267

268+
printf("ur_adapter_handle_t_ l0 plat init\n");
268269
PlatformCache.Compute = [](Result<PlatformVec> &result) {
269270
static std::once_flag ZeCallCountInitialized;
270271
try {
@@ -391,13 +392,15 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
391392
GlobalAdapter->ZeResult = ZE_RESULT_ERROR_UNINITIALIZED;
392393
}
393394
}
395+
printf("GlobalAdapter->ZeResult: %d\n", *GlobalAdapter->ZeResult);
394396
assert(GlobalAdapter->ZeResult !=
395397
std::nullopt); // verify that level-zero is initialized
396398
PlatformVec platforms;
397399

398400
// Absorb the ZE_RESULT_ERROR_UNINITIALIZED and just return 0 Platforms.
399401
if (*GlobalAdapter->ZeResult == ZE_RESULT_ERROR_UNINITIALIZED) {
400402
result = std::move(platforms);
403+
printf("GlobalAdapter->ZeResult is uninit such that platforms are 0, returning\n");
401404
return;
402405
}
403406
if (*GlobalAdapter->ZeResult != ZE_RESULT_SUCCESS) {
@@ -448,6 +451,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
448451
result = err;
449452
}
450453
};
454+
printf("ur_adapter_handle_t_ l0 plat init done\n");
451455
}
452456

453457
void globalAdapterOnDemandCleanup() {

test/loader/platforms/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function(add_loader_platform_test name ENV)
2828
)
2929
set_tests_properties(${TEST_NAME} PROPERTIES
3030
LABELS "loader"
31-
ENVIRONMENT "${ENV};UR_LOG_TEST=level:info\;output:stdout\;flush:debug"
31+
ENVIRONMENT "${ENV};UR_LOG_TEST=level:info\;output:stdout\;flush:debug;SYCL_UR_TRACE=-1;ZE_DEBUG=1"
3232
)
3333
endfunction()
3434

0 commit comments

Comments
 (0)