1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
6 * @brief Abstraction over platform specific implementations
11 namespace MKLDNNPlugin {
14 bool checkOpenMpEnvVars(bool includeOMPNumThreads = true);
15 // numbers of CPU sockets in the machine (on Linux), 1 on all other OSes
16 int getNumberOfCPUSockets();
17 // numbers of CPU physical cores on Linux (which is considered to be more performance friendly for servers)
18 // (on other OSes it simply relies on the original parallel API of choice, which usually use the logical cores )
19 int getNumberOfCPUCores();
22 } // namespace MKLDNNPlugin