Fix missing logstatus in hipFuncGetAttributes

Tá an tiomantas seo le fáil i:
Rahul Garg tiomanta 2019-08-02 11:51:34 +05:30
1 tuismitheoir e7447d5809
tiomantas 474bf0effc
1 comhad athraithe
+2 -2
+2 -2
Féach ar an gComhad
@@ -788,8 +788,8 @@ hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
HIP_INIT_API(hipFuncGetAttributes, attr, func);
using namespace hip_impl;
if (!attr) return hipErrorInvalidValue;
if (!func) return hipErrorInvalidDeviceFunction;
if (!attr) return ihipLogStatus(hipErrorInvalidValue);
if (!func) return ihipLogStatus(hipErrorInvalidDeviceFunction);
auto agent = this_agent();
auto kd = get_program_state().kernel_descriptor(reinterpret_cast<uintptr_t>(func), agent);