Skip to content

Commit

Permalink
OpenCL:Bugfix: Fix bug for getInfo when create Error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying committed Dec 22, 2024
1 parent fa4bcba commit e6180bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/backend/opencl/core/runtime/OpenCLRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,12 @@ OpenCLRuntime::OpenCLRuntime(const BackendConfig::PrecisionMode precision, const

}else{
mIsCreateError = true;
MNN_ASSERT(1 <= gpuDevices.size());
}
}else{
mIsCreateError = true;
MNN_ASSERT(platforms.size() > 0);
}
if (mIsCreateError) {
return;
}
{
// Init info
Expand Down

0 comments on commit e6180bd

Please sign in to comment.