[CPU] Fix data race in concurrent compile_model calls (#17164)
This commit is contained in:
parent
00847cba7d
commit
8879ef53a7
@ -185,7 +185,7 @@ void set_cpu_used(const std::vector<int>& cpu_ids, const int used) {}
|
||||
|
||||
#else
|
||||
|
||||
static CPU cpu;
|
||||
static thread_local CPU cpu;
|
||||
|
||||
# ifndef _WIN32
|
||||
int get_number_of_cpu_cores(bool bigCoresOnly) {
|
||||
|
Loading…
Reference in New Issue
Block a user