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

This reverts commit e11a002615.

Change-Id: I45b50c2e7052495ac71057aab2f1becb1423fe5e
This commit is contained in:
Ioannis Assiouras
2023-10-03 11:36:52 +01:00
والد 6b5c880d6a
کامیت fb1aaad0b7
@@ -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));