We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d7cae commit 93f1f65Copy full SHA for 93f1f65
backends/cadence/common/xt_macros.h
@@ -10,13 +10,15 @@
10
11
#include <executorch/runtime/core/exec_aten/util/tensor_util.h>
12
13
-#define XT_KERNEL_CHECK(ctx, out, kernel, ...) \
14
- { \
15
- const auto ret = kernel(__VA_ARGS__); \
16
- ET_KERNEL_CHECK_MSG( \
17
- ctx, \
18
- ret == 0, \
19
- InvalidArgument, \
20
- out, \
21
- "Failed to run kernel: " #kernel "(" #__VA_ARGS__ ")"); \
+#define XT_KERNEL_CHECK(ctx, out, kernel, ...) \
+ { \
+ const auto ret = kernel(__VA_ARGS__); \
+ ET_KERNEL_CHECK_MSG( \
+ ctx, \
+ ret == 0, \
+ InvalidArgument, \
+ out, \
+ "Failed to run kernel: " #kernel "(" #__VA_ARGS__ \
22
+ "). Returned code %d", \
23
+ static_cast<int>(ret)); \
24
}
0 commit comments