File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
libclc/ptx-nvidiacl/libspirv/group
sycl/test/on-device/sub_group Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,10 @@ long __clc__3d_to_linear_local_id(ulong3 id) {
385
385
uint scope, TYPE x, ulong3 local_id) { \
386
386
ulong linear_local_id = __clc__3d_to_linear_local_id(local_id); \
387
387
return __spirv_GroupBroadcast(scope, x, linear_local_id); \
388
+ } \
389
+ _CLC_DEF _CLC_OVERLOAD _CLC_CONVERGENT TYPE __spirv_GroupBroadcast( \
390
+ uint scope, TYPE x, uint local_id) { \
391
+ return __spirv_GroupBroadcast(scope, x, (ulong)local_id); \
388
392
}
389
393
__CLC_GROUP_BROADCAST (char );
390
394
__CLC_GROUP_BROADCAST (uchar );
@@ -411,6 +415,10 @@ _CLC_DECL _CLC_CONVERGENT half
411
415
_Z17__spirv_GroupBroadcastjDF16_Dv3_m (uint scope , half x , ulong3 local_id ) {
412
416
return __spirv_GroupBroadcast (scope , x , local_id );
413
417
}
418
+ _CLC_DECL _CLC_CONVERGENT half
419
+ _Z22__spirv_GroupBroadcastjDF16_j (uint scope , half x , uint local_id ) {
420
+ return __spirv_GroupBroadcast (scope , x , (ulong )local_id );
421
+ }
414
422
415
423
#undef __CLC_GROUP_BROADCAST
416
424
Original file line number Diff line number Diff line change 1
- // XFAIL: cuda
2
- // CUDA compilation and runtime do not yet support sub-groups.
3
-
4
1
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5
2
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
6
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out
19
16
20
17
int main () {
21
18
queue Queue;
22
- if (! core_sg_supported ( Queue.get_device ())) {
19
+ if (Queue.get_device (). is_host ( )) {
23
20
std::cout << " Skipping test\n " ;
24
21
return 0 ;
25
22
}
Original file line number Diff line number Diff line change 1
- // XFAIL: cuda
2
- // CUDA compilation and runtime do not yet support sub-groups.
3
-
4
1
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5
2
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6
3
16
13
17
14
int main () {
18
15
queue Queue;
19
- if (! core_sg_supported ( Queue.get_device ())) {
16
+ if (Queue.get_device (). is_host ( )) {
20
17
std::cout << " Skipping test\n " ;
21
18
return 0 ;
22
19
}
23
20
check<cl::sycl::half>(Queue);
21
+ std::cout << " Test passed." << std::endl;
24
22
return 0 ;
25
23
}
Original file line number Diff line number Diff line change 1
- // XFAIL: cuda
2
- // CUDA compilation and runtime do not yet support sub-groups.
3
-
4
1
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5
2
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
6
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out
19
16
20
17
int main () {
21
18
queue Queue;
22
- if (! core_sg_supported ( Queue.get_device ())) {
19
+ if (Queue.get_device (). is_host ( )) {
23
20
std::cout << " Skipping test\n " ;
24
21
return 0 ;
25
22
}
You can’t perform that action at this time.
0 commit comments