From 7a0e0cb50ef1522a48e3ce61647b9ad7a677d4d2 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Thu, 11 Jul 2019 14:58:16 +0300 Subject: [PATCH] [HIP][HIPIFY] Split HIP_ARRAY_DESCRIPTOR struct to HIP_ARRAY_DESCRIPTOR and HIP_ARRAY3D_DESCRIPTOR [Reason] To be compatible with CUDA [#1133] Update HIP code, hipify-clang, tests and docs [TODO] Add support of the corresponding functions on nvcc fallback path --- samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 36d37a4fad..2cb9877cac 100644 --- a/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -58,10 +58,10 @@ bool runTest(int argc, char** argv) { hipArray* array; HIP_ARRAY_DESCRIPTOR desc; - desc.format = HIP_AD_FORMAT_FLOAT; - desc.numChannels = 1; - desc.width = width; - desc.height = height; + desc.Format = HIP_AD_FORMAT_FLOAT; + desc.NumChannels = 1; + desc.Width = width; + desc.Height = height; hipArrayCreate(&array, &desc); hip_Memcpy2D copyParam;