@@ -978,8 +978,9 @@ namespace
978978        const  char  *errorString = nullptr ;
979979        ze_result_t  result = zerGetLastErrorDescription (&errorString);
980980        EXPECT_EQ (ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
981-         EXPECT_EQ (0 , tracingData.getZerPrologueCallCount (" zerGetLastErrorDescription"  ));
982-         EXPECT_EQ (0 , tracingData.getZerEpilogueCallCount (" zerGetLastErrorDescription"  ));
981+         //  ZER callbacks should still be called in the tracing layer even if the driver ends up not supporting ZER APIs
982+         EXPECT_EQ (1 , tracingData.getZerPrologueCallCount (" zerGetLastErrorDescription"  ));
983+         EXPECT_EQ (1 , tracingData.getZerEpilogueCallCount (" zerGetLastErrorDescription"  ));
983984
984985        callBasicZeApis (drivers);
985986        verifyBasicZeApisCalledBothCallbackTypes (1 );
@@ -993,8 +994,9 @@ namespace
993994        errorString = nullptr ;
994995        result = zerGetLastErrorDescription (&errorString);
995996        EXPECT_EQ (ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
996-         EXPECT_EQ (0 , tracingData.getZerPrologueCallCount (" zerGetLastErrorDescription"  ));
997-         EXPECT_EQ (0 , tracingData.getZerEpilogueCallCount (" zerGetLastErrorDescription"  ));
997+         //  ZER callbacks should still be called in the tracing layer even if the driver ends up not supporting ZER APIs
998+         EXPECT_EQ (2 , tracingData.getZerPrologueCallCount (" zerGetLastErrorDescription"  ));
999+         EXPECT_EQ (2 , tracingData.getZerEpilogueCallCount (" zerGetLastErrorDescription"  ));
9981000
9991001        uint32_t  deviceCount = 1 ;
10001002        std::vector<ze_device_handle_t > devices (deviceCount);
0 commit comments