Skip to content

Commit 1dc8d25

Browse files
committed
Remove duplicate UR_CALL definition from common.hpp
The file common.hpp contains two definitions of the UR_CALL macro, which only works because both definitions are exactly the same. This commit removes the second one. Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
1 parent 5e548c5 commit 1dc8d25

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

source/adapters/level_zero/common.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,6 @@ template <class T> struct ZesStruct : public T {
287287
}
288288
};
289289

290-
// Trace an internal PI call; returns in case of an error.
291-
#define UR_CALL(Call) \
292-
{ \
293-
if (PrintTrace) \
294-
fprintf(stderr, "UR ---> %s\n", #Call); \
295-
ur_result_t Result = (Call); \
296-
if (PrintTrace) \
297-
fprintf(stderr, "UR <--- %s(%s)\n", #Call, getUrResultString(Result)); \
298-
if (Result != UR_RESULT_SUCCESS) \
299-
return Result; \
300-
}
301-
302290
// This function will ensure compatibility with both Linux and Windows for
303291
// setting environment variables.
304292
bool setEnvVar(const char *name, const char *value);

0 commit comments

Comments
 (0)