Merge pull request #1278 from gargrahul/fix_hipfuncGetAttribute_logstatus
Fix missing logstatus in hipFuncGetAttributes
[ROCm/clr commit: a489877153]
This commit is contained in:
@@ -788,8 +788,8 @@ hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
|
|||||||
HIP_INIT_API(hipFuncGetAttributes, attr, func);
|
HIP_INIT_API(hipFuncGetAttributes, attr, func);
|
||||||
using namespace hip_impl;
|
using namespace hip_impl;
|
||||||
|
|
||||||
if (!attr) return hipErrorInvalidValue;
|
if (!attr) return ihipLogStatus(hipErrorInvalidValue);
|
||||||
if (!func) return hipErrorInvalidDeviceFunction;
|
if (!func) return ihipLogStatus(hipErrorInvalidDeviceFunction);
|
||||||
|
|
||||||
auto agent = this_agent();
|
auto agent = this_agent();
|
||||||
auto kd = get_program_state().kernel_descriptor(reinterpret_cast<uintptr_t>(func), agent);
|
auto kd = get_program_state().kernel_descriptor(reinterpret_cast<uintptr_t>(func), agent);
|
||||||
|
|||||||
Reference in New Issue
Block a user