[Openmp-dev] OpenMP defines __CUDA_ARCH__ for offloading, should it?
Hal Finkel via Openmp-dev
openmp-dev at lists.llvm.org
Wed Jul 22 10:15:31 PDT 2020
On 7/22/20 11:34 AM, Jon Chesterfield via Openmp-dev wrote:
> Discovered by accident while looking into a bug for Ron (cc'd).
>
> OpenMP running on nvptx defines the __CUDA_ARCH__ macro. Do we think
> it should? OpenMP target offloading is somewhat implemented in terms
> of cuda but that seems incidental.
Shouldn't it do this only when compiling device code for NVIDIA
architectures?
-Hal
>
> I'd like a __GPU_ARCH__ macro which expands to something useful for
> nvptx, amdgcn, other. And to not define CUDA_ARCH when compiling
> openmp offloading code.
>
> Thoughts?
>
> Jon
>
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20200722/f45e9027/attachment.html>
More information about the Openmp-dev
mailing list