diff --git a/projects/hip/hipify-clang/src/main.cpp b/projects/hip/hipify-clang/src/main.cpp index 2214567df3..64037c43dd 100644 --- a/projects/hip/hipify-clang/src/main.cpp +++ b/projects/hip/hipify-clang/src/main.cpp @@ -199,6 +199,7 @@ int main(int argc, const char **argv) { Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("cuda", ct::ArgumentInsertPosition::BEGIN)); Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-x", ct::ArgumentInsertPosition::BEGIN)); Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("--cuda-host-only", ct::ArgumentInsertPosition::BEGIN)); + Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-fno-delayed-template-parsing", ct::ArgumentInsertPosition::BEGIN)); if (!CudaPath.empty()) { std::string sCudaPath = "--cuda-path=" + CudaPath; Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster(sCudaPath.c_str(), ct::ArgumentInsertPosition::BEGIN)); diff --git a/projects/hip/tests/hipify-clang/unit_tests/libraries/CUB/cub_03.cu b/projects/hip/tests/hipify-clang/unit_tests/libraries/CUB/cub_03.cu index 9fdbc17515..bc914d419d 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/libraries/CUB/cub_03.cu +++ b/projects/hip/tests/hipify-clang/unit_tests/libraries/CUB/cub_03.cu @@ -1,8 +1,6 @@ // RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args // CHECK: #include #include -// CHECK: #include -#include // CHECK: #include #include @@ -11,12 +9,14 @@ using namespace cub; // Simple CUDA kernel for computing tiled partial sums template + // CHECK: hipcub::BlockLoadAlgorithm LOAD_ALGO, + cub::BlockLoadAlgorithm LOAD_ALGO, + // CHECK: hipcub::BlockScanAlgorithm SCAN_ALGO> + cub::BlockScanAlgorithm SCAN_ALGO> __global__ void ScanTilesKernel(int *d_in, int *d_out) { // Specialize collective types for problem context - // TODO: typedef cub::BlockLoad BlockLoadT; - typedef BlockLoad BlockLoadT; + // CHECK: typedef ::hipcub::BlockLoad BlockLoadT; + typedef ::cub::BlockLoad BlockLoadT; typedef BlockScan BlockScanT; // Allocate on-chip temporary storage __shared__ union {