0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Note Book : LAPACK Install On Windows10

Last updated at Posted at 2020-10-30

OpencvでCUDAを有効にする場合に必要になる。

It isn't work anaconda ninja and fortran.exe, clang-cl.exe.
This lapack is ver 3.9.

looks like this setting.
cmake .. ^
-G "Ninja" ^
-DCMAKE_C_COMPILER=C:/Users/admin/anaconda3/Library/bin/clang.exe ^
-DCMAKE_Fortran_COMPILER=C:/Users/admin/anaconda3/Library/bin/flang.exe ^

If use msys64 is OK.
cmake .. -G "MSYS Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran

environment
・windows 10
・cpu ryzen 3700x
・gpu ncvidia-rtx3900

software
・msys64
・cmake
・git
・opencv-4.5.0
・ant 1.8.2
・open-jdk-15
・cuda 11
・visual studio 2019

cmd.exe
cd C:/tools/src/lapack
git clone https://github.com/Reference-LAPACK/lapack.git
cd lapack
mkdir build
cd build
cmake .. -G "MSYS Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran -DUSE_OPTIMIZED_BLAS=ON -DUSE_OPTIMIZED_LAPACK=ON -DCMAKE_INSTALL_LIBDIR=/tools/opt/lapack .. 
cmake --build . --config Release  --target install

cmake .. -G "MSYS Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran -DUSE_OPTIMIZED_BLAS=ON -DUSE_OPTIMIZED_LAPACK=ON -DCMAKE_INSTALL_LIBDIR=/tools/opt/lapack ..

image.png

cmake --build . --config Release --target install -j 8
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?