|
32 | 32 | #include <utility>
|
33 | 33 |
|
34 | 34 | // having _TWO_ mid-param #ifdefs makes the functions very difficult to read.
|
35 |
| -// Here we simplify the &CodeLoc declaration to be _CODELOCPARAM(&CodeLoc) and |
36 |
| -// _CODELOCARG(&CodeLoc) Similarly, the KernelFunc param is simplified to be |
| 35 | +// Here we simplify the KernelFunc param is simplified to be |
37 | 36 | // _KERNELFUNCPARAM(KernelFunc) Once the queue kernel functions are defined,
|
38 | 37 | // these macros are #undef immediately.
|
39 |
| - |
40 |
| -// replace _CODELOCPARAM(&CodeLoc) with nothing |
41 |
| -// or : , const detail::code_location &CodeLoc = |
42 |
| -// detail::code_location::current() |
43 |
| -// replace _CODELOCARG(&CodeLoc) with nothing |
44 |
| -// or : const detail::code_location &CodeLoc = {} |
45 |
| - |
46 |
| -#ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA |
47 |
| -#define _CODELOCONLYPARAM(a) \ |
48 |
| - const detail::code_location a = detail::code_location::current() |
49 |
| -#define _CODELOCPARAM(a) \ |
50 |
| - , const detail::code_location a = detail::code_location::current() |
51 |
| - |
52 |
| -#define _CODELOCARG(a) |
53 |
| -#define _CODELOCFW(a) , a |
54 |
| -#else |
55 |
| -#define _CODELOCONLYPARAM(a) |
56 |
| -#define _CODELOCPARAM(a) |
57 |
| - |
58 |
| -#define _CODELOCARG(a) const detail::code_location a = {} |
59 |
| -#define _CODELOCFW(a) |
60 |
| -#endif |
61 |
| - |
62 | 38 | // replace _KERNELFUNCPARAM(KernelFunc) with KernelType KernelFunc
|
63 | 39 | // or const KernelType &KernelFunc
|
64 | 40 | #ifdef __SYCL_NONCONST_FUNCTOR__
|
@@ -1081,11 +1057,7 @@ class __SYCL_EXPORT queue {
|
1081 | 1057 | CodeLoc);
|
1082 | 1058 | }
|
1083 | 1059 |
|
1084 |
| -// Clean up CODELOC and KERNELFUNC macros. |
1085 |
| -#undef _CODELOCPARAM |
1086 |
| -#undef _CODELOCONLYPARAM |
1087 |
| -#undef _CODELOCARG |
1088 |
| -#undef _CODELOCFW |
| 1060 | +// Clean KERNELFUNC macros. |
1089 | 1061 | #undef _KERNELFUNCPARAM
|
1090 | 1062 |
|
1091 | 1063 | /// Returns whether the queue is in order or OoO
|
|
0 commit comments