From 19d22fc198829c0e30232e3798d49a2f15156cd7 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 13 May 2022 14:05:35 +0530 Subject: [PATCH] Fix typo in 11_texture_driver sample [ROCm/hip commit: 622362f069f15e3172efdbf602b26658e94d991a] --- .../hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 161b3ea93d..744ca2d965 100644 --- a/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -130,7 +130,7 @@ bool runTest(int argc, char** argv) { inline bool isImageSupported() { int imageSupport = 1; #ifdef __HIP_PLATFORM_AMD__ - HIPCHECK(hipDeviceGetAttribute(&imageSupport, hipDeviceAttributeImageSupport, + HIP_CHECK(hipDeviceGetAttribute(&imageSupport, hipDeviceAttributeImageSupport, 0)); #endif return imageSupport != 0;