|
spy v3.0.0
Andrée Borrel
|
The accelerator programming models the code is compiled with. More...
The accelerator programming models the code is compiled with.
These report how the current translation unit is being compiled, not what the machine holds: they are true when the compiler was asked for CUDA or for SYCL, whatever device is present.
Variables | |
| constexpr auto | spy::supports::cuda = spy_implementation_defined {} |
| CUDA usage indicator. | |
| constexpr auto | spy::supports::sycl = spy_implementation_defined {} |
| SYCL usage indicator. | |
|
inlineconstexpr |
#include <spy/accelerator.hpp>
CUDA usage indicator.
Retrieves the information about wether or not current file is compiled using NVCC. Note that this indicator works in both .cpp and .cu files.
|
inlineconstexpr |
#include <spy/accelerator.hpp>
SYCL usage indicator.
Retrieves the information about wether or not current file is compiled with SYCL supports.