8/17/2023 0 Comments Blas windows cmakeCreate a set of three of folders inside "My Documents" for MyraMath: If you already have CMake installed, just make sure it's version 2.8.9 or newer. Once you've run a few tests to verify that MyraMath is behaving correctly, you're ready to integrate the library into new projects of your own.īelow are links to the sections of this page:Ī native Windows installer for CMake can be found at. Building the library ( myramath.dll) and the accompanying test suite ( myramath_tests.exe) is straightforward. Closed source products like Intel MKL are also suitable (MyraMath can link to them without source). A BLAS/LAPACK implementation is required to build MyraMath, if you don't have one you should download and build MyraKL first. The following instructions use Visual Studio 2015 because it supports C 11 features, but other versions of Visual Studio are mostly similar. Running with debug output on for the `find` commands.ĬMake Error at D:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):Ĭould NOT find BLAS (missing: BLAS_LIBRARIES)ĭ:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)ĭ:/GITlib/cmake/share/cmake-3.20/Modules/FindBLAS.cmake:1045 (find_package_handle_standard_args)ĬMake Debug Log at CMakeLists.txt:42 (FIND_PACKAGE):įind_package considered the following paths for BLAS.cmakeĭ:/GITlib/neml/cmake/Modules/FindBLAS.cmakeĭ:/GITlib/cmake/share/cmake-3.20/Modules/FindBLAS.MyraMath can be built natively on Windows using the Microsoft Visual C compiler. Output below: D:\GITlib\neml>cmake -DCMAKE_CXX_COMPILER=icl.exe -DBLAS_blas_LIBRARY=D:\GITlib\lapack_build\bin\libblas.dll -DLAPACK_lapack_LIBRARY=D:\GITlib\lapack_build\bin\liblapack.dll -debug-find -DBoost_INCLUDE_DIR="D:\GITlib\boost" -DCMAKE_BUILD_TYPE=Release -DUSE_OPENMP=False -G Ninja. I assume you meant putting -debug-find in the cmake command line. The suggestions there were to either add the path to blas.dll in the CMakeLists or add blas.dll location to PATH variable - both tried without success. I have looked into previous discussions on this, notably one for Win 10 and OpenBlas not being found, but it was not resolved. ĬMake Error at D:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find BLAS (missing: BLAS_LIBRARIES) Call Stack (most recent call first): D:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) D:/GITlib/cmake/share/cmake-3.20/Modules/FindBLAS.cmake:1045 (find_package_handle_standard_args) CMakeLists.txt:42 (FIND_PACKAGE) After invoking cmake for this neml library:Ĭmake -DCMAKE_CXX_COMPILER=icl.exe -DBLAS_blas_LIBRARY=D:\GITlib\lapack_build\bin\libblas.dll -DLAPACK_lapack_LIBRARY=D:\GITlib\lapack_build\bin\liblapack.dll -DBoost_INCLUDE_DIR="D:\GITlib\boost" -DCMAKE_BUILD_TYPE=Release -DUSE_OPENMP=False -G Ninja. This is on Windows 10, my cmake version is 3.20.2 and BLAS/LAPACK were installed from the Lapack package 3.9.1. For this package, BLAS and LAPACK are required. I have been trying to use cmake for the build of some libraries from GitHub - Argonne-National-Laboratory/neml: Modular consitutive modeling library for structural materials.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |