SWDEV-422089,SWDEV-420822 - [ABI Break] Update sample to use hipFuncAttribute fields

Change-Id: I6f432d50b6883664ce303b6d3bd90051f9a33cac


[ROCm/hip-tests commit: e11a002615]
This commit is contained in:
Ioannis Assiouras
2023-09-14 15:59:24 +01:00
zatwierdzone przez Rakesh Roy
rodzic de3d24df97
commit 2e80cd8fbf
@@ -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));