Loading graph_framework/cuda_context.hpp +1 −0 Original line number Diff line number Diff line Loading @@ -408,6 +408,7 @@ namespace gpu { //------------------------------------------------------------------------------ void create_header(std::ostringstream &source_buffer) { if constexpr (jit::is_complex<T> ()) { source_buffer << "#define CUDA_DEVICE_CODE" << std::endl; source_buffer << "#include <cuda/std/complex>" << std::endl; source_buffer << "#include <special_functions.hpp>" << std::endl; } Loading graph_framework/special_functions.hpp +7 −0 Original line number Diff line number Diff line Loading @@ -8,10 +8,17 @@ #ifndef special_functions_h #define special_functions_h #ifdef CUDA_DEVICE_CODE #include <cuda/std/complex> using namespace cuda #else #include <complex> #include <cfloat> #include <cmath> #include <limits> #endif namespace special { Loading Loading
graph_framework/cuda_context.hpp +1 −0 Original line number Diff line number Diff line Loading @@ -408,6 +408,7 @@ namespace gpu { //------------------------------------------------------------------------------ void create_header(std::ostringstream &source_buffer) { if constexpr (jit::is_complex<T> ()) { source_buffer << "#define CUDA_DEVICE_CODE" << std::endl; source_buffer << "#include <cuda/std/complex>" << std::endl; source_buffer << "#include <special_functions.hpp>" << std::endl; } Loading
graph_framework/special_functions.hpp +7 −0 Original line number Diff line number Diff line Loading @@ -8,10 +8,17 @@ #ifndef special_functions_h #define special_functions_h #ifdef CUDA_DEVICE_CODE #include <cuda/std/complex> using namespace cuda #else #include <complex> #include <cfloat> #include <cmath> #include <limits> #endif namespace special { Loading