SIRIUS 7.5.0
Electronic structure library and applications
Macros
acc_runtime.hpp File Reference

Uniform interface to the runtime API of CUDA and ROCm. More...

Go to the source code of this file.

Macros

#define accLaunchKernel(kernelName, numblocks, numthreads, memperblock, streamId, ...)
 
#define hipThreadIdx_x   threadIdx.x
 
#define hipThreadIdx_y   threadIdx.y
 
#define hipThreadIdx_z   threadIdx.z
 
#define hipBlockIdx_x   blockIdx.x
 
#define hipBlockIdx_y   blockIdx.y
 
#define hipBlockIdx_z   blockIdx.z
 
#define hipBlockDim_x   blockDim.x
 
#define hipBlockDim_y   blockDim.y
 
#define hipBlockDim_z   blockDim.z
 
#define hipGridDim_x   gridDim.x
 
#define hipGridDim_y   gridDim.y
 
#define hipGridDim_z   gridDim.z
 

Detailed Description

Uniform interface to the runtime API of CUDA and ROCm.

Definition in file acc_runtime.hpp.

Macro Definition Documentation

◆ accLaunchKernel

#define accLaunchKernel (   kernelName,
  numblocks,
  numthreads,
  memperblock,
  streamId,
  ... 
)
Value:
do { \
kernelName<<<numblocks, numthreads, memperblock, streamId>>>(__VA_ARGS__); \
} while (0)

Definition at line 42 of file acc_runtime.hpp.

◆ hipThreadIdx_x

#define hipThreadIdx_x   threadIdx.x

Definition at line 47 of file acc_runtime.hpp.

◆ hipThreadIdx_y

#define hipThreadIdx_y   threadIdx.y

Definition at line 48 of file acc_runtime.hpp.

◆ hipThreadIdx_z

#define hipThreadIdx_z   threadIdx.z

Definition at line 49 of file acc_runtime.hpp.

◆ hipBlockIdx_x

#define hipBlockIdx_x   blockIdx.x

Definition at line 51 of file acc_runtime.hpp.

◆ hipBlockIdx_y

#define hipBlockIdx_y   blockIdx.y

Definition at line 52 of file acc_runtime.hpp.

◆ hipBlockIdx_z

#define hipBlockIdx_z   blockIdx.z

Definition at line 53 of file acc_runtime.hpp.

◆ hipBlockDim_x

#define hipBlockDim_x   blockDim.x

Definition at line 55 of file acc_runtime.hpp.

◆ hipBlockDim_y

#define hipBlockDim_y   blockDim.y

Definition at line 56 of file acc_runtime.hpp.

◆ hipBlockDim_z

#define hipBlockDim_z   blockDim.z

Definition at line 57 of file acc_runtime.hpp.

◆ hipGridDim_x

#define hipGridDim_x   gridDim.x

Definition at line 59 of file acc_runtime.hpp.

◆ hipGridDim_y

#define hipGridDim_y   gridDim.y

Definition at line 60 of file acc_runtime.hpp.

◆ hipGridDim_z

#define hipGridDim_z   gridDim.z

Definition at line 61 of file acc_runtime.hpp.