NVIDIA / NVIDIA/cccl

Misplaced alignas() in cuda/memcpy_async/memcpy_async_tx.pass.cpp

Open
#1,599 0 comments 0 reactions 0 assignees View on GitHub
libcu++
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

https://github.com/NVIDIA/cccl/blob/4e6f24a6af6b661ed561f1e598df109f03973cdf/libcudacxx/test/libcudacxx/cuda/memcpy_async/memcpy_async_tx.pass.cpp#L42

`alignas(16)` should be placed before `__shared__`

Both nvcc and clang complain about misplaced `alignas(16)`, though for nvcc it's a warning, but it's an error for clang: https://godbolt.org/z/YqfGTznYf

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.