From 104be4b67773bae871d20a208ca73981dd64f95d Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Tue, 30 Oct 2018 15:53:00 +0300 Subject: [PATCH] [HIPIFY][fix] Return back cudaDeviceProp's struct field warpSize to hipWarpSize mapping. --- hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp b/hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp index ddccd08f42..ab97c8315e 100644 --- a/hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp +++ b/hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp @@ -9,6 +9,8 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaChannelFormatDesc", {"hipChannelFormatDesc", CONV_TYPE, API_RUNTIME}}, // no analogue {"cudaDeviceProp", {"hipDeviceProp_t", CONV_TYPE, API_RUNTIME}}, + // NOTE: int warpSize is a field of cudaDeviceProp + {"warpSize", {"hipWarpSize", CONV_TYPE, API_RUNTIME}}, // no analogue {"cudaEglFrame", {"hipEglFrame", CONV_TYPE, API_RUNTIME, HIP_UNSUPPORTED}},