Skip to content

Commit f30f960

Browse files
committed
Make getUrResultString a function instead of lambda
1 parent 5fd02b0 commit f30f960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adapters/cuda/command_buffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <cuda.h>
1616
#include <memory>
1717

18-
static auto getUrResultString = [](ur_result_t Result) {
18+
static inline std::string getUrResultString(ur_result_t Result) {
1919
switch (Result) {
2020
case UR_RESULT_SUCCESS:
2121
return "UR_RESULT_SUCCESS";
@@ -156,7 +156,7 @@ static auto getUrResultString = [](ur_result_t Result) {
156156
default:
157157
return "UR_RESULT_ERROR_UNKNOWN";
158158
}
159-
};
159+
}
160160

161161
// Trace an internal UR call; returns in case of an error.
162162
#define UR_CALL(Call) \

0 commit comments

Comments
 (0)