Add HIP init in hipFuncGetAttributes (#1262)

* Add HIP init in hipFuncGetAttributes

* [dtest]Remove explicit hip init call in hipFuncGetAttributes dtest


[ROCm/clr commit: c610159b85]
Этот коммит содержится в:
Rahul Garg
2019-07-31 08:42:08 -07:00
коммит произвёл Maneesh Gupta
родитель 0e56fee8e8
Коммит 3b5dac1d9d
2 изменённых файлов: 2 добавлений и 2 удалений
+2 -1
Просмотреть файл
@@ -785,6 +785,7 @@ hipFuncAttributes make_function_attributes(const ihipModuleSymbol_t& kd) {
hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
{
HIP_INIT_API(hipFuncGetAttributes, attr, func);
using namespace hip_impl;
if (!attr) return hipErrorInvalidValue;
@@ -797,7 +798,7 @@ hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
*attr = make_function_attributes(*kd);
return hipSuccess;
return ihipLogStatus(hipSuccess);
}
hipError_t ihipModuleLoadData(hipModule_t* module, const void* image) {
-1
Просмотреть файл
@@ -39,7 +39,6 @@ void fn(float* px, float* py)
}
int main() {
hipInit(0);
hipFuncAttributes attr{};