Skip to content

Commit 611196c

Browse files
committed
Fix formatting
1 parent a42efb5 commit 611196c

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

source/adapters/level_zero/common.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ void zeParseError(ze_result_t ZeError, const char *&ErrorString);
362362
// Perform traced call to L0 without checking for errors
363363
#define ZE_CALL_NOCHECK(ZeName, ZeArgs) \
364364
ZeCall().doCall(ZeName ZeArgs, #ZeName, #ZeArgs, false)
365-
366-
#define ZE_CALL_NOCHECK_NAME(ZeName, ZeArgs, callName) \
365+
366+
#define ZE_CALL_NOCHECK_NAME(ZeName, ZeArgs, callName) \
367367
ZeCall().doCall(ZeName ZeArgs, callName, #ZeArgs, false)
368368

369369
// This wrapper around std::atomic is created to limit operations with reference

source/adapters/level_zero/v2/common.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616
#include "../common.hpp"
1717
#include "logger/ur_logger.hpp"
1818
namespace {
19-
const char* desturctorNames[] = {
20-
"zeKernelDestroy",
21-
"zeEventDestroy",
22-
"zeEventPoolDestroy",
23-
"zeContextDestroy",
24-
"zeCommandListDestroy"
25-
};
19+
const char *desturctorNames[] = {"zeKernelDestroy", "zeEventDestroy",
20+
"zeEventPoolDestroy", "zeContextDestroy",
21+
"zeCommandListDestroy"};
2622
}
2723

2824
namespace v2 {
@@ -74,7 +70,8 @@ struct ze_handle_wrapper {
7470
}
7571

7672
if (ownZeHandle) {
77-
auto zeResult = ZE_CALL_NOCHECK_NAME(destroy, (handle), desturctorNames[nameId]);
73+
auto zeResult =
74+
ZE_CALL_NOCHECK_NAME(destroy, (handle), desturctorNames[nameId]);
7875
// Gracefully handle the case that L0 was already unloaded.
7976
if (zeResult && zeResult != ZE_RESULT_ERROR_UNINITIALIZED)
8077
throw ze2urResult(zeResult);

0 commit comments

Comments
 (0)