Template Numerical Library version main:e6bb26f
Macros
CudaCallable.h File Reference

Macros

#define __cuda_callable__   __device__ __host__
 

Macro Definition Documentation

◆ __cuda_callable__

#define __cuda_callable__   __device__ __host__

This macro serves for annotating functions which are supposed to be called even from the GPU device. If HAVE_CUDA is defined, functions annotated with __cuda_callable__ are compiled for both CPU and GPU. If HAVE_CUDA is not defined, this macro has no effect.