Skip to content

Commit

Permalink
Merge pull request #1338 from lplewa/duplicate_ur_call
Browse files Browse the repository at this point in the history
Remove duplicate UR_CALL definition from common.hpp
  • Loading branch information
pbalcer authored Feb 14, 2024
2 parents cfba9f1 + 1dc8d25 commit 14320de
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 14320de

Please sign in to comment.