File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#define __SPIRV_VAR_QUALIFIERS extern " C" const
17
17
18
- #if defined( __NVPTX__) && defined(__SYCL_DEVICE_ONLY__)
18
+ #ifdef __NVPTX__
19
19
20
20
SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_x ();
21
21
SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_y ();
@@ -51,7 +51,7 @@ SYCL_EXTERNAL uint32_t __spirv_NumSubgroups();
51
51
SYCL_EXTERNAL uint32_t __spirv_SubgroupId ();
52
52
SYCL_EXTERNAL uint32_t __spirv_SubgroupLocalInvocationId ();
53
53
54
- #else // __NVPTX__ && __SYCL_DEVICE_ONLY__
54
+ #else // __NVPTX__
55
55
56
56
typedef size_t size_t_vec __attribute__ ((ext_vector_type(3 )));
57
57
__SPIRV_VAR_QUALIFIERS size_t_vec __spirv_BuiltInGlobalSize;
@@ -154,7 +154,7 @@ SYCL_EXTERNAL inline uint32_t __spirv_SubgroupLocalInvocationId() {
154
154
return __spirv_BuiltInSubgroupLocalInvocationId;
155
155
}
156
156
157
- #endif // __NVPTX__ && __SYCL_DEVICE_ONLY__
157
+ #endif // __NVPTX__
158
158
159
159
#undef __SPIRV_VAR_QUALIFIERS
160
160
You can’t perform that action at this time.
0 commit comments