From fb1aaad0b714ebfabc88d5d2a78ea143dbebb521 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Tue, 3 Oct 2023 11:36:52 +0100 Subject: [PATCH] SWDEV-425129 - Revert "SWDEV-422089,SWDEV-420822 - [ABI Break] Update sample to use hipFuncAttribute fields" This reverts commit e11a002615bf4216492484cb499e8d4a05416111. Change-Id: I45b50c2e7052495ac71057aab2f1becb1423fe5e --- samples/0_Intro/module_api_global/runKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/0_Intro/module_api_global/runKernel.cpp b/samples/0_Intro/module_api_global/runKernel.cpp index 4ca8eabd40..40711dd4b2 100644 --- a/samples/0_Intro/module_api_global/runKernel.cpp +++ b/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, hipFuncAttributeSharedSizeBytes, Function)); + checkHipErrors(hipFuncGetAttribute(&val, HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES,Function)); printf("Shared Size Bytes = %d\n",val); - checkHipErrors(hipFuncGetAttribute(&val, hipFuncAttributeNumRegs, Function)); + checkHipErrors(hipFuncGetAttribute(&val, HIP_FUNC_ATTRIBUTE_NUM_REGS, Function)); printf("Num Regs = %d\n",val); checkHipErrors(hipModuleLaunchKernel(Function, 1, 1, 1, LEN, 1, 1, 0, 0, NULL, (void**)&config));