27 #if defined(ENABLE_OFFLOAD) 28 if (value.empty() || value ==
"yes" || value ==
"omptarget")
30 if (value ==
"omptarget")
45 #if defined(ENABLE_CUDA) 46 if (value.empty() || value ==
"yes" || value ==
"cuda")
48 else if (value ==
"omptarget")
51 throw std::runtime_error(
"Cannot access CUDA code path. Executables are built with ENABLE_CUDA=OFF.");
52 #if defined(ENABLE_OFFLOAD) 53 if (value.empty() || value ==
"yes" || value ==
"omptarget")
55 if (value ==
"omptarget")
71 #if defined(ENABLE_SYCL) 72 if (value.empty() || value ==
"yes" || value ==
"sycl")
74 else if (value ==
"omptarget")
77 throw std::runtime_error(
"Cannot access SYCL code path. Executables are built with ENABLE_SYCL=OFF.");
78 #if defined(ENABLE_OFFLOAD) 79 if (value.empty() || value ==
"yes" || value ==
"omptarget")
81 if (value ==
"omptarget")
helper functions for EinsplineSetBuilder
static PlatformKind selectPlatform(std::string_view value)