[CPU] Fix OMP build (#16006)

* Fix OMP build

* Apply comments
This commit is contained in:
Maksim Kutakov 2023-03-01 14:07:48 +01:00 committed by GitHub
parent 4c0d28f26d
commit 6ae024f86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ struct CPUStreamsExecutor::Impl {
}
#elif OV_THREAD == OV_THREAD_OMP
omp_set_num_threads(_impl->_config._threadsPerStream);
if (!checkOpenMpEnvVars(false) && (ThreadBindingType::NONE != _impl->_config._threadBindingType)) {
if (!check_open_mp_env_vars(false) && (ThreadBindingType::NONE != _impl->_config._threadBindingType)) {
CpuSet processMask;
int ncpus = 0;
std::tie(processMask, ncpus) = get_process_mask();