|
Template Numerical Library version\ main:7388705
|
#include "Types.h"#include <TNL/Exceptions/BackendRuntimeError.h>Namespaces | |
| namespace | TNL |
| The main TNL namespace. | |
| namespace | TNL::Backend |
| Internal namespace for CUDA/HIP backend support. | |
Macros | |
| #define | __cuda_callable__ |
| This macro serves for annotating functions which are supposed to be called even from the GPU device. | |
| #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) |
| #define __cuda_callable__ |
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__ nor __HIP__ is defined, this macro has no effect.
| #define TNL_BACKEND_SAFE_CALL | ( | call | ) |