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
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 ..