[GPU] Fix RapidJSON assertion failure during loading kernel (#7526)

Signed-off-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>
This commit is contained in:
Andrew Kwangwoong Park 2021-09-18 02:13:09 +09:00 committed by GitHub
parent 58af4eb83c
commit 7772aeb3bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ void AutoTuner::RemoveKernel(const std::string& cacheFilePath,
std::tuple<std::string, int> AutoTuner::LoadKernelOffline(TuningCache* deviceCache,
const Params& params) {
std::lock_guard<std::mutex> lock(mutex);
static const uint32_t defaultComputeUnits = 24;
if (!deviceCache)
return {};