TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
device.hpp File Reference

Detailed Description

Provides GPU and non-GPU specific functionality.

Definition in file device.hpp.

Go to the source code of this file.

Macros

#define device_error_check(ARG1, ARG2)
 Trigger a compilation error every time the nda::device_error_check function is called.
 

Functions

template<bool flag = false>
void nda::compile_error_no_gpu ()
 Trigger a compilation error in case GPU specific functionality is used without configuring the project with GPU support.
 

Variables

static constexpr bool nda::have_cuda = false
 Constexpr variable that is true if the project is configured with CUDA support.
 
static constexpr bool nda::have_device = false
 Constexpr variable that is true if the project is configured with GPU support.