Required to enable CUDA in Opencv.
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 ..
cmake --build . --config Release --target install -j 8
Recommended Posts