File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
453457void globalAdapterOnDemandCleanup () {
Original file line number Diff line number Diff 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 )
3333endfunction ()
3434
You can’t perform that action at this time.
0 commit comments