Skip to content

Commit d3f3418

Browse files
authored
[SYCLomatic] Fix the cooperative_groups flaky failed. (#932)
Signed-off-by: Chen, Sheng S <[email protected]>
1 parent 1345eb2 commit d3f3418

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

features/feature_case/cooperative_groups/cooperative_groups.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ __global__ void test_group_thread_index(unsigned int *data) {
4444
cg::thread_block ttb = cg::this_thread_block();
4545
auto group_x = ttb.group_index().x;
4646
auto thread_x = ttb.thread_index().x;
47-
data[threadIdx.x] = group_x + thread_x;
47+
if (group_x ==1)
48+
data[threadIdx.x] = group_x + thread_x;
4849
}
4950

5051
int main() {

features/test_feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
cmpllink_only_as_wa_tests = ['thrust-op', 'curand', 'curand-usm', 'curand-cross-function', 'cublasBatch', 'cublasGetSetMatrix', 'cublasGetSetVector', 'cublasIsamax_etc', 'cublas-lambda',
2424
'cublas_curandInMacro', 'cublasLegacyCZ', 'cublasLegacyHelper', 'cublasRegularCZ', 'cublasTsyrkx', 'cublasTtrmmLegacy', 'cublas-usm-legacy', 'math-emu', 'cublas-usm',
2525
'cusolverDnEi', 'cusolverDnEi-part2', 'cusolverDnLn', 'cusolverDnLn_cuda10-1', 'cusolverDnLn_cuda10-1-part2', 'cusolverDnLn-part2', 'cublas-only-usm', 'cufft-deduce',
26-
'cufft-different-locations-usm', 'cufft-reuse-handle', 'cufft-different-locations', 'cufft-usm', 'cufft', 'cooperative_groups', 'driverCtx', 'driverDevice', 'driverArray', 'driverTex',
26+
'cufft-different-locations-usm', 'cufft-reuse-handle', 'cufft-different-locations', 'cufft-usm', 'cufft', 'driverCtx', 'driverDevice', 'driverArray', 'driverTex',
2727
'driverMemset', 'cub_warp', 'cub_device_run_length_encode_encode', 'cooperative_group_coalesced_group', 'text_experimental_build_only',
2828
'wmma', 'assert', 'peer_access_using_driver_api', 'curand-device-usm', 'curand-device', 'cufft-func-ptr', 'cufft-others', 'cub_block', 'codepin_basic', 'math-direct', 'math-helper', 'grid_sync_root_group', 'device_cpu', 'image',
2929
'nvshmem', 'cudnn-rnn']

0 commit comments

Comments
 (0)