25#ifndef __ACC_RUNTIME_HPP__
26#define __ACC_RUNTIME_HPP__
30#if defined(SIRIUS_CUDA)
31#include <cuda_runtime.h>
34#if defined(SIRIUS_ROCM)
35#include <hip/hip_runtime.h>
42#define accLaunchKernel(kernelName, numblocks, numthreads, memperblock, streamId, ...) \
44 kernelName<<<numblocks, numthreads, memperblock, streamId>>>(__VA_ARGS__); \
47#define hipThreadIdx_x threadIdx.x
48#define hipThreadIdx_y threadIdx.y
49#define hipThreadIdx_z threadIdx.z
51#define hipBlockIdx_x blockIdx.x
52#define hipBlockIdx_y blockIdx.y
53#define hipBlockIdx_z blockIdx.z
55#define hipBlockDim_x blockDim.x
56#define hipBlockDim_y blockDim.y
57#define hipBlockDim_z blockDim.z
59#define hipGridDim_x gridDim.x
60#define hipGridDim_y gridDim.y
61#define hipGridDim_z gridDim.z
68#define accLaunchKernel(...) \
70 hipLaunchKernelGGL(__VA_ARGS__); \
Interface to accelerators API.