Template Numerical Library version\ main:df396df
Loading...
Searching...
No Matches
Macros.h File Reference
#include "Types.h"
#include <TNL/Exceptions/BackendRuntimeError.h>
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  TNL
 The main TNL namespace.
 
namespace  TNL::Backend
 Internal namespace for CUDA/HIP backend support.
 

Macros

#define __cuda_callable__
 
#define TNL_BACKEND_SAFE_CALL(call)
 
#define TNL_CHECK_CUDA_DEVICE   ::TNL::Backend::checkErrorCode( __FILE__, __LINE__, cudaGetLastError() )
 
#define TNL_NVCC_HD_WARNING_DISABLE
 

Functions

void TNL::Backend::checkErrorCode (const char *file_name, int line, error_t error)
 

Macro Definition Documentation

◆ __cuda_callable__

#define __cuda_callable__
Value:
__device__ \
__host__

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

◆ TNL_BACKEND_SAFE_CALL

#define TNL_BACKEND_SAFE_CALL ( call)
Value:
::TNL::Backend::checkErrorCode( __FILE__, __LINE__, call )