56ab105e9d
+ Enclose template instantiation kernel calls into round brackets, leave regular kernel names unchanged (hipify-perl doesn't handle cases with macros). + Fix corresponding tests. PS. hipify-perl couldn't handle correctly the following cases due to macros expansion disability, thus hipify-clang should be used instead: #define KERNEL_NAME_MACRO axpy<float> #define KERNEL_CALL_MACRO axpy<float><<<1, 2>>> #define KERNEL_ARG_LIST_MACRO a, x, y // CUDA: KERNEL_NAME_MACRO<<<1, 2>>>(KERNEL_ARG_LIST_MACRO); KERNEL_CALL_MACRO(KERNEL_ARG_LIST_MACRO); // hipify-perl: hipLaunchKernelGGL(KERNEL_NAME_MACRO, dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO); KERNEL_CALL_MACRO(KERNEL_ARG_LIST_MACRO); // hipify-clang: hipLaunchKernelGGL((KERNEL_NAME_MACRO), dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO); hipLaunchKernelGGL((axpy<float>), dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO);