From 2e80cd8fbf6ff512f6f7ab92719b5cddfe161698 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Thu, 14 Sep 2023 15:59:24 +0100 Subject: [PATCH] SWDEV-422089,SWDEV-420822 - [ABI Break] Update sample to use hipFuncAttribute fields Change-Id: I6f432d50b6883664ce303b6d3bd90051f9a33cac [ROCm/hip-tests commit: e11a002615bf4216492484cb499e8d4a05416111] --- .../hip-tests/samples/0_Intro/module_api_global/runKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/samples/0_Intro/module_api_global/runKernel.cpp b/projects/hip-tests/samples/0_Intro/module_api_global/runKernel.cpp index 40711dd4b2..4ca8eabd40 100644 --- a/projects/hip-tests/samples/0_Intro/module_api_global/runKernel.cpp +++ b/projects/hip-tests/samples/0_Intro/module_api_global/runKernel.cpp @@ -125,9 +125,9 @@ int main() { hipFunction_t Function; checkHipErrors(hipModuleGetFunction(&Function, Module, "test_globals")); int val =-1; - checkHipErrors(hipFuncGetAttribute(&val, HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES,Function)); + checkHipErrors(hipFuncGetAttribute(&val, hipFuncAttributeSharedSizeBytes, Function)); printf("Shared Size Bytes = %d\n",val); - checkHipErrors(hipFuncGetAttribute(&val, HIP_FUNC_ATTRIBUTE_NUM_REGS, Function)); + checkHipErrors(hipFuncGetAttribute(&val, hipFuncAttributeNumRegs, Function)); printf("Num Regs = %d\n",val); checkHipErrors(hipModuleLaunchKernel(Function, 1, 1, 1, LEN, 1, 1, 0, 0, NULL, (void**)&config));