<html>#2737: define CCTK_DEVICE and CCTK_HOST in Cactus
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>

<p>Cactus supports CUDA programming in the option lists level via various <code>CUDA_FOO</code> variables but does not provide macros for <code>__device__</code> and <code>__host__</code> modifiers used by both CUDA and HIP accelerators.</p>
<p>It would be good if Cactus could provide those depending on which compiler is detected, Predefined defines to look for are (copying AMReX): <code>CUDA_ARCH || HIP_DEVICE_COMPILE || SYCL_DEVICE_ONLY</code> (in its <code>include/AMReX_GpuQualifiers.H</code>).</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2737/define-cctk_device-and-cctk_host-in-cactus'>https://bitbucket.org/einsteintoolkit/tickets/issues/2737/define-cctk_device-and-cctk_host-in-cactus</a></p>
</html>