[BUG] Wrap #pragma nv_*
in macro that is enabled only for nvcc
#13106
Labels
bug
Something isn't working
#pragma nv_*
in macro that is enabled only for nvcc
#13106
The pragma
#pragma nv_*
is used in many places like this:cudf/cpp/include/cudf/utilities/type_dispatcher.hpp
Line 436 in ebe4757
cudf/cpp/include/cudf/column/column_view.hpp
Line 332 in ebe4757
However, these
#pragma nv_
are defined only fornvcc
compiler. Host compilers don't understand them. Thus, they may issue warnings due to unknown pragma, such as:We should wrap these
#pragma nv_
into macro so onlynvcc
can see them. For example:The text was updated successfully, but these errors were encountered: