You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Offending code is thrust::async::reduce(thrust::cuda::par.on(stm), d_in, d_in + n, double(0), thrust::plus<double>()).get()
[20250120-17:13:01] zarko@tempus:/mnt/faststore/repo/tempus-core/build$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0
[20250120-17:13:06] zarko@tempus:/mnt/faststore/repo/tempus-core/build$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compile with UBSan on G++13 the following code thrust::async::reduce(thrust::cuda::par.on(stm), d_in, d_in + n, double(0), thrust::plus<double>()).get()
Expected behavior
No error during runtime.
Reproduction link
No response
Operating System
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble
nvidia-smi output
Linux tempus 6.8.0-51-generic #52 SMP PREEMPT_DYNAMIC Fri Jan 10 22:59:53 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
NVCC version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0
The text was updated successfully, but these errors were encountered:
Thx for reporting this! We should have a quick look whether the bug comes from the thrust::async::reduce implementation, since it is deprecated and will be removed at the next major release.
I could reproduce the issue with nvcc 12.2 (newer versions fail to execute the compiled program) https://godbolt.org/z/haGaevTjc. It's still present in CCCL main.
However, thrust::reduce does not have the problem. Given thrust::async::reduce is scheduled for removal, I will close this bug as "not planned". Thx for reporting!
Is this a duplicate?
Type of Bug
Runtime Error
Component
Thrust
Describe the bug
Offending code is
thrust::async::reduce(thrust::cuda::par.on(stm), d_in, d_in + n, double(0), thrust::plus<double>()).get()
[20250120-17:13:01] zarko@tempus:/mnt/faststore/repo/tempus-core/build$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0
[20250120-17:13:06] zarko@tempus:/mnt/faststore/repo/tempus-core/build$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
How to Reproduce
Compile with UBSan on G++13 the following code
thrust::async::reduce(thrust::cuda::par.on(stm), d_in, d_in + n, double(0), thrust::plus<double>()).get()
Expected behavior
No error during runtime.
Reproduction link
No response
Operating System
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble
nvidia-smi output
Linux tempus 6.8.0-51-generic #52 SMP PREEMPT_DYNAMIC Fri Jan 10 22:59:53 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
NVCC version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0
The text was updated successfully, but these errors were encountered: