masahi edited a comment on pull request #7458: URL: https://github.com/apache/tvm/pull/7458#issuecomment-780153529
@mbrookhart Yes, I wanted to reuse `thrust.cu` as is, by adding the following to `ROCM.cmake`: ``` file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/*.cu) ``` But unlike for CUDA, cmake doesn't recognize that this .cu file needs to be compiled by the same CXX compiler (`hipcc`) together with other .cc files, so it will not be compiled (it is ignored during compilation). I think CMake has a special support for NVCC and .cu file, to correctly compile .cu with NVCC and others with gcc/clang. On rocm, everything needs to be compiled by the same compiler, `hipcc` (a wrapper around clang). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
