Skip to content

Commit

Permalink
Remove duplicate UR_CALL definition from common.hpp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lplewa committed Feb 13, 2024
1 parent 5e548c5 commit 1dc8d25
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions source/adapters/level_zero/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,6 @@ template <class T> struct ZesStruct : public T {
}
};

// Trace an internal PI call; returns in case of an error.
#define UR_CALL(Call) \
{ \
if (PrintTrace) \
fprintf(stderr, "UR ---> %s\n", #Call); \
ur_result_t Result = (Call); \
if (PrintTrace) \
fprintf(stderr, "UR <--- %s(%s)\n", #Call, getUrResultString(Result)); \
if (Result != UR_RESULT_SUCCESS) \
return Result; \
}

// This function will ensure compatibility with both Linux and Windows for
// setting environment variables.
bool setEnvVar(const char *name, const char *value);
Expand Down

0 comments on commit 1dc8d25

Please sign in to comment.