Remove macros to resolve cuda and boost conflict
We have added the following in several places to resolve the cuda's conflict with boost (source_location). The newer versions of cuda (12.8.1) do not need this dirty fix which was taken from here
#ifdef __CUDACC__
#pragma push_macro("__cpp_consteval")
#pragma push_macro("_NODISCARD")
#pragma push_macro("__builtin_LINE")
#define __cpp_consteval 201811L
#ifdef _NODISCARD
#undef _NODISCARD
#define _NODISCARD
#endif
#define consteval constexpr
#include <source_location>
#undef consteval
#pragma pop_macro("__cpp_consteval")
#pragma pop_macro("_NODISCARD")
#else
#include <source_location>
#endif
Edited by sadr_m