Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: assertion failure in examples/basic/example.cu #4206

Open
1 task done
alephchang opened this issue Mar 20, 2025 · 0 comments
Open
1 task done

[BUG]: assertion failure in examples/basic/example.cu #4206

alephchang opened this issue Mar 20, 2025 · 0 comments
Labels
bug Something isn't working right.

Comments

@alephchang
Copy link

Is this a duplicate?

Type of Bug

Runtime Error

Component

General CCCL

Describe the bug

build the example code and run on V100/A100/H100, but get assertion failure on A100.

How to Reproduce

  1. under dir examples/basic/example
  2. The compiling command: nvcc -I../../../cccl/thrust -I../../../cccl/libcudacxx/include -I../../../cccl/cub example.cu -o example -ccbin /depot/gcc-9.2.0/bin/g++ -gencode arch=compute_80,code=compute_80 -gencode arch=compute_90,code=compute_90 -gencode arch=compute_70,code=compute_70 -std=c++17
  3. run the binary example on V100/H100 correctly, output

Sum: 1000

  1. run the binary example on A100: assertion failure:

Sum: 512
example: example.cu:80: int main(): Assertion `result[0] == N' failed.
Abort (core dumped)

Expected behavior

the output on A100 should be like on V100/H100

Sum:1000

Reproduction link

No response

Operating System

AlmaLinux 8.4

nvidia-smi output

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.06 Driver Version: 535.183.06 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA A100-SXM4-80GB On | 00000000:0A:00.0 Off | 0 |
| N/A 33C P0 64W / 400W | 0MiB / 81920MiB | 0% Default |
| | | Disabled |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+

NVCC version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Jun_13_19:16:58_PDT_2023
Cuda compilation tools, release 12.2, V12.2.91
Build cuda_12.2.r12.2/compiler.32965470_0

@alephchang alephchang added the bug Something isn't working right. label Mar 20, 2025
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
Status: Todo
Development

No branches or pull requests

1 participant