[ET Trac] #2737: define CCTK_DEVICE and CCTK_HOST in Cactus

Roland Haas trac-noreply at einsteintoolkit.org
Wed Jun 7 08:49:37 CDT 2023


#2737: define CCTK_DEVICE and CCTK_HOST in Cactus

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: 
     Type: enhancement
 Priority: minor
Component: Cactus

Cactus supports CUDA programming in the option lists level via various `CUDA_FOO` variables but does not provide macros for `__device__` and `__host__` modifiers used by both CUDA and HIP accelerators.

It would be good if Cactus could provide those depending on which compiler is detected, Predefined defines to look for are \(copying AMReX\): `CUDA_ARCH || HIP_DEVICE_COMPILE || SYCL_DEVICE_ONLY` \(in its `include/AMReX_GpuQualifiers.H`\).

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2737/define-cctk_device-and-cctk_host-in-cactus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20230607/ebcf6a90/attachment.htm>


More information about the Trac mailing list