ROCm/rocThrust

BEGIN_NS_THRUST does not name a type

qili93 opened this issue · 4 comments

Seems need to add "#include <thrust/system/cuda/config.h>" header file into "thrust/system/hip/detail/error.inl" or it will throw error as following.

In file included from /opt/rocm/include/thrust/system/hip/error.h:183:0,
/opt/rocm/include/thrust/system/hip/detail/error.inl:23:1: error: ‘BEGIN_NS_THRUST’ does not name a type
 BEGIN_NS_THRUST
 ^~~~~~~~~~~~~~~
/opt/rocm/include/thrust/system/hip/detail/error.inl:81:1: error: ‘END_NS_THRUST’ does not name a type
 END_NS_THRUST
 ^~~~~~~~~~~~~

Please let me know if any of my configuration is not correct, thanks :)

Can you provide the compiler version you are using?

Please provide additional information for me to assist you with. Compiler, OS and rocm version would help.

This looks like another hip platform detection issue, @neon60.

Closing due to inactivity. Please reopen the issue if you are able to provide your system configuration information.