Note Book: OpenBLAS Install On Windows10

Required to enable CUDA in Opencv.

reference https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio

environment ・ Windows 10 ・ Cpu ryzen 3700x ・ Gpu ncvidia-rtx3900

software ・ Anaconda ・ Ninja ・ Cmake ・ Git ・ Opencv-4.5.0 ・ Ant 1.8.2 ・ Open-jdk-15 ・ Cuda 11 ・ Visual studio 2019

cmd.exe


conda config --add channels conda-forge
conda install -y -c isuruf kitware-ninja
conda install -y cmake flang clangdev perl libflang
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

conda config --add channels conda-forge
conda install -y -c isuruf kitware-ninja
conda install -y cmake flang clangdev perl libflang
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
cd C:/tools/openblas
git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
mkdir build
cd build
@rem According to the environment
set CONDA_PREFIX=C:\Users\admin\anaconda3
set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
set CPATH=%CONDA_PREFIX%\Library\include;%CPATH%
cmake .. -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DDYNAMIC_ARCH=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tools/opt/openblas ..
cmake --build . --config RELEASE --target intall

capture git clone https://github.com/xianyi/OpenBLAS.git image.png

conda update -n base conda

image.png

conda config --add channels conda-forge

image.png

conda install -y cmake flang clangdev perl libflang

image.png

conda install -y -c isuruf kitware-ninja

image.png

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

image.png

set CONDA_INSTALL_LOCN=C:\Users\admin\anaconda3 set LIB=%CONDA_INSTALL_LOCN%\Library\lib;%LIB% set CPATH=%CONDA_INSTALL_LOCN%\Library\include;%CPATH%

cmake .. -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DDYNAMIC_ARCH=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tools/opt/openblas ..

image.png

Recommended Posts

Note Book: OpenBLAS Install On Windows10
Note Book: LAPACK Install On Windows 10
Note Book: VTK Install On Windows10
Note Book: OpenCV with CUDA Install On Windows10
Install Docker on Windows 10 PRO
Note: Install PostgreSQL 9.5 on Ubuntu 18.04
Note Book: OpenCV v4.5.0 with Alphamat Install On Windows10 But it need Eigen
Error when npm install on Windows 7
How to install ImageMagick on Windows 10
Install Java 9 on windows 10 and CentOS 7
Install imagick on macOS Catalina + php 7.4 Note
Install Realtek network driver on Ubuntu Note
How to install NVIDIA driver on Ubuntu 18.04 (Note)
Install gradle on mac
Install OpenJDK on macOS
Install Java on Mac
Install Golang on CentOS 8
Install pyqt5 on ubuntu
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install lombok on SpringToolSuite4
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Autoware on Ubuntu 18.04.5
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Liferay 7 / DXP (Windows)
Install openjdk11 on mac
Install Homebrew on Ubuntu 20.04
M.S. docker on Windows
Install Redmine 4.1.1 on CentOS 7
Install OpenJDK 8 on mac
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Note when pip install mysqlclient cannot be installed on Mac
Note: Install nginx from official repositories with dnf on CentOS 8
How to install JDK 8 on Windows without using the installer
Install Docker on Raspberry Pi
Install Docker on Ubuntu Server 20.04
Ubuntu on Windows Community Preview
Install Sidekiq pro on Rails
Run openvpn on Docker (windows)
Try Docker on Windows 10 Home
Install rbenv on Amazon Linux
Install zabbix agent (5.0) on Ubuntu 18.04
Manually build OpenJDK on Windows
Install tomcat on Sakura's VPS
Install OpenFOAM v2006 on CentOS
Install Arudino IDE on Ubuntu 20
Install Java on WSL Ubuntu 18.04
Install Jenkins on Docker's CentOS
Install Ubuntu Desktop 20.10 on RaspberryPi4
Install Apache on CentOS on VirtualBox
Install Arduino IDE on Ubuntu 20.04
Ubuntu on Windows build speed
Install Rails on macOS Catalina
Install raspi-config on Ubuntu 20.04 (LTS)
Install Ruby 2.7 on RHEL 8 (AppStream)