
It seems that VS remembers the setting and still passes /openmp even though the language configuration for Clang has no option for OpenMP. Important: make sure that OpenMP support is disabled before switching the platform toolset (this is the default for new C++ projects).
Enable Clang OpenMP support by adding -Xclang -fopenmp to the compiler options in project Properties -> C/C++ -> All Options -> Additional Options. Set the project's platform toolset (project Properties -> General -> Platform Toolset) to "LLVM (clang-cl)". If not already installed, add Clang and Clang-cl using the Visual Studio 2019 Installer. Although it is a bit convoluted, one can (ab)use the Clang-cl toolset to produce working 32-bit OpenMP programs. Also there is a great tutorial on OpenMP from Lawrence Livermore National Laboratory available here.Ģ020 Update: Microsoft now ships Clang for Windows with Visual Studio. You can start learning OpenMP by visiting the OpenMP web site here. There are other compilers available as well - both Intel C/C++ Compiler (commercial license required) and GCC (freely available) support newer OpenMP versions and other compilers are available too. #OPENMP LIBRARY DOWNLOAD HOW TO#
See here for more information on how to use OpenMP in Visual Studio.
Unfortunately its OpenMP support is a bit outdated - even the latest and greatest Visual Studio only supports OpenMP 2.0 (an outdated standard version from 2002). The standard compiler for Windows comes from Microsoft and it is the Microsoft Visual C/C++ compiler from Visual Studio. You just need a decent compiler that supports OpenMP and you need to know how to enable OpenMP support since it is usually disabled by default. OpenMP is not something that you install.