From bc550cc062239e3bcf85a77c94cc7017de15b206 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Thu, 12 Sep 2019 18:51:25 +0300 Subject: [PATCH] [HIPIFY] Add unsupported fp16 functions [ROCm/hip commit: 34540002dd7a838622ac2f1930eeff388c869103] --- .../hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp index 6600c152c0..af48279a95 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp @@ -149,4 +149,14 @@ const std::map CUDA_DEVICE_FUNC_MAP{ {"__vnegss4", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, {"__vabsdiffs4", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, {"__vsads4", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + // fp16 functions + {"__shfl_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_up_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_down_sync",{"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_xor_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_up_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_down_sync",{"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_xor_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_xor_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, };