[HIPIFY][CUB] Initial support (hipify-clang only)
+ Add one matcher (will be more) + Update Maps and Statistics + Add cub_01.cu unit test + Update lit harness to support standalone CUB + Update README.md + Update hipify-perl (only CUB header is supported for now) [IMPORTANT] clang (and hipify-clang) works correctly only with official NVLabs version on GitHub. Compilation of CUB from official CUDA release has conflicts with THRUST. Thus, to compile CUB sources, option "-I" should be specified to the cloned CUB from NVLAB on GitHub.
This commit is contained in:
@@ -67,6 +67,8 @@ const std::map <llvm::StringRef, hipCounter> CUDA_INCLUDE_MAP{
|
||||
// cuSPARSE includes
|
||||
{"cusparse.h", {"hipsparse.h", "", CONV_INCLUDE_CUDA_MAIN_H, API_SPARSE}},
|
||||
{"cusparse_v2.h", {"hipsparse.h", "", CONV_INCLUDE_CUDA_MAIN_H, API_SPARSE}},
|
||||
// CUB includes
|
||||
{"cub/cub.cuh", {"hipcub/hipcub.hpp", "", CONV_INCLUDE_CUDA_MAIN_H, API_CUB}},
|
||||
// CAFFE2 includes
|
||||
{"caffe2/core/common_gpu.h", {"caffe2/core/hip/common_gpu.h", "", CONV_INCLUDE, API_CAFFE2, UNSUPPORTED}},
|
||||
{"caffe2/core/context_gpu.h", {"caffe2/core/hip/context_gpu.h", "", CONV_INCLUDE, API_CAFFE2, UNSUPPORTED}},
|
||||
|
||||
Reference in New Issue
Block a user