File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
include/CL/sycl/intel/esimd Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ using uint = unsigned int;
30
30
// class.
31
31
#define ESIMD_PRIVATE __attribute__ ((opencl_private))
32
32
// Bind a ESIMD global variable to a specific register.
33
- #define ESIMD_REGISTER (n ) __attribute__((register (n)))
33
+ #define ESIMD_REGISTER (n ) __attribute__((register_num (n)))
34
34
#else
35
35
// TODO ESIMD define what this means on Windows host
36
36
#define ESIMD_NODEBUG
Original file line number Diff line number Diff line change
1
+ // RUN: %clangxx -fsycl -fsycl-explicit-simd -fsycl-device-only -fsyntax-only -Xclang -verify %s
2
+ // expected-no-diagnostics
3
+
4
+ #include < CL/sycl/intel/esimd.hpp>
5
+
6
+ // This test checks that DPC++ compiler in ESIMD mode understands
7
+ // the ESIMD_PRIVATE and ESIMD_REGISTER macros
8
+
9
+ ESIMD_PRIVATE ESIMD_REGISTER (17 ) int vc;
10
+
11
+ SYCL_EXTERNAL void init_vc (int x) {
12
+ vc = x;
13
+ }
You can’t perform that action at this time.
0 commit comments