SWDEV-430809 - Replace hipErrorSharedObjectInitFailed vs hipErrorNoBinaryForGpu
hipErrorSharedObjectInitFailed should be used for interop objects.
Change-Id: Id3bcffaac3b511021f2fd57e9b156a897b646db0
[ROCm/clr commit: 68d442f29a]
This commit is contained in:
committato da
German Andryeyev
parent
25a8281952
commit
7883f1e6f7
@@ -419,13 +419,13 @@ hipError_t FatBinaryInfo::BuildProgram(const int device_id) {
|
||||
if(CL_SUCCESS != fbd_info->program_->build(g_devices[device_id]->devices(),
|
||||
nullptr, nullptr, nullptr,
|
||||
kOptionChangeable, kNewDevProg)) {
|
||||
return hipErrorSharedObjectInitFailed;
|
||||
return hipErrorNoBinaryForGpu;
|
||||
}
|
||||
fbd_info->prog_built_ = true;
|
||||
}
|
||||
|
||||
if (!fbd_info->program_->load()) {
|
||||
return hipErrorSharedObjectInitFailed;
|
||||
return hipErrorNoBinaryForGpu;
|
||||
}
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ hipError_t Function::getStatFunc(hipFunction_t* hfunc, int deviceId) {
|
||||
guarantee(modules_ != nullptr, "Module not initialized");
|
||||
|
||||
if (dFunc_.size() != g_devices.size()) {
|
||||
return hipErrorSharedObjectInitFailed;
|
||||
return hipErrorNoBinaryForGpu;
|
||||
}
|
||||
|
||||
hipModule_t hmod = nullptr;
|
||||
|
||||
@@ -598,7 +598,7 @@ hipError_t ihipLaunchKernel(const void* hostFunction, dim3 gridDim, dim3 blockDi
|
||||
int deviceId = hip::Stream::DeviceId(stream);
|
||||
hipError_t hip_error = PlatformState::instance().getStatFunc(&func, hostFunction, deviceId);
|
||||
if ((hip_error != hipSuccess) || (func == nullptr)) {
|
||||
if (hip_error == hipErrorSharedObjectInitFailed) {
|
||||
if (hip_error == hipErrorNoBinaryForGpu) {
|
||||
return hip_error;
|
||||
} else {
|
||||
return hipErrorInvalidDeviceFunction;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user