Building ordering libraries on Windows10 with Intel C compiler #95
Replies: 2 comments 3 replies
-
To confirm that the Ninja generator and Intel C compiler are used instead of MSVC when building the ordering libraries, you can modify your CMake command as follows: cmake -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_MAKE_PROGRAM=C:\msys64\mingw64\bin\ninja.exe -Dprefix=../building_metis -P scripts/build_metis.cmake This explicitly sets the C and C++ compilers to the Intel ones ( |
Beta Was this translation helpful? Give feedback.
-
By the way, in the root directory file "Readme_Windows.md" there is said "The CMake Windows default generator Visual Studio 17 2022 does not work, even when using MSVC compiler". But it seems like it worked somehow, it built the needed libraries in build/Debug, though I did not test them. |
Beta Was this translation helpful? Give feedback.
-
I managed to build metis with Intel Compiler by specifying the Ninja generator in the script run_cmake.cmake: |
Beta Was this translation helpful? Give feedback.
-
I want to use intel c compiler instead of msvc, as it for example applies vectorization in the cases msvc does not. I managed to build the mumps package with Ninja generator by specifying the path to the generator like this:
cmake -G Ninja -B build -DCMAKE_MAKE_PROGRAM=C:\msys64\mingw64\bin\ninja.exe
-- The C compiler identification is IntelLLVM 2024.1.0 with MSVC-like command-line
But this does not work for building ordering libraries before mumps. When I try the command
cmake -G Ninja -DCMAKE_MAKE_PROGRAM=C:\msys64\mingw64\bin\ninja.exe -Dprefix=../building_metis -P scripts/build_metis.cmake
build system is still
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.36.32535.0
Could you please tell me whether I can specify the Ninja generator for building ordering libraries or use Intel C compiler another way?
Beta Was this translation helpful? Give feedback.
All reactions