forked from NVIDIA/cccl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NVC++ stdpar mode enables CUDA support but does not define the macro `__CUDACC__`. Any code in CCCL (which is used by NVC++ stdpar under the covers) needs to check for either `__CUDACC__` or `_NVHPC_CUDA` being set. NVIDIA#1199 only checks for `__CUDACC__` when defining `_CCCL_HOST` and `_CCCL_DEVICE` and some other macros. This change completely broke `nvc++ -stdpar` because all functions became unannotated host functions. Fix this by changing several files in libcudacxx/include/cuda/std/detail/libcxx/include to check for either `__CUDACC__` or `_NVHPC_CUDA`.
- Loading branch information
1 parent
a931e9a
commit 97ada72
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters