Skip to content

Instantly share code, notes, and snippets.

@MVoz
Last active August 1, 2017 10:54
Show Gist options
  • Save MVoz/7ecc404873d90b6ca7c42425af370a72 to your computer and use it in GitHub Desktop.
Save MVoz/7ecc404873d90b6ca7c42425af370a72 to your computer and use it in GitHub Desktop.
scotch msvc

soft depens "Visual Studio 14 2015" + "Intel Parallel Studio XE 2017", а скорее его либы "mpi" и окружение

cmd.exe /K "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017\windows\bin\ipsxe-comp-vars.bat" intel64 vs2015

либо

call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017\windows\bin\ipsxe-comp-vars.bat" intel64 vs2015

и

call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017\windows\bin\ifortvars.bat" intel64 vs2015

git clone https://github.com/OpenCMISS-Dependencies/scotch.git

\ есть еще ветка devel, но я собрал с мастера \ git clone -b devel

md scotch/build && cd scotch/build

\ обязательный параметр -G"Visual Studio 14 2015 Win64" - у меня лично по умолчанию почему то x86 переключался

cmake .. -L -DCMAKE_INSTALL_PREFIX:PATH="../_Rel" -Wno-dev -DCMAKE_PREFIX_PATH="E:/tools/vcpkg/installed/x64-windows-static" -DCMAKE_CL_64=1 -DCMAKE_WINDOWS_LIBS_DIR:STRING="E:/tools/vcpkg/installed/x64-windows-static/lib" -DUSE_BZ2:BOOL=ON -DBZIP2_LIBRARY_RELEASE=E:/tools/vcpkg/installed/x64-windows-static/lib/bz2.lib -DBUILD_TESTS:BOOL=OFF -G"Visual Studio 14 2015 Win64"

-- Found MPI_C: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017.2.187/windows/mpi/intel64/lib/impi.lib

\ параметры msbuild на усмотрение, можно и просто cmake --build . \

cmake --build . -- /t:Rebuild /p:Configuration=Release /p:Platform=x64 /p:TargetPlatformVersion="10.0.15063.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment