Merge pull request #1278 from gargrahul/fix_hipfuncGetAttribute_logstatus

Fix missing logstatus in hipFuncGetAttributes
Этот коммит содержится в:
Maneesh Gupta
2019-08-02 10:00:38 +00:00
коммит произвёл GitHub
родитель ed04e96e2d 20e9aba94e
Коммит a489877153
+2 -2
Просмотреть файл
@@ -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);