HIP
HIP copied to clipboard
The attribute hipFuncAttributeMaxDynamicSharedMemorySize is ignored
For the attribute hipFuncAttributeMaxDynamicSharedMemorySize, the hipFuncSetAttribute may return an error when the memory size exceeds maximum dynamic shared memory size.
Reference hipDynamicShared2.cpp
@zjin-lcf Hi, is your issue resolved on the latest HIP? If so can we close this ticket?
No. Thanks.
@zjin-lcf Internal ticket has been created to resolve this issue. Thanks!
@zjin-lcf Can you provide more details of your setup and steps to reproduce?
The file /tests/src/kernel/hipDynamicShared2.cpp shows the usage of the function.
The hipFuncSetAttribute may return an error when the memory size (SIZE) exceeds maximum dynamic shared memory size.
hipError_t ret = hipFuncSetAttribute(
reinterpret_cast<const void*>(&vectorAdd),
hipFuncAttributeMaxDynamicSharedMemorySize, SIZE);