BLAS(Basic Linear Algebra Subprograms)와 LAPACK(Linear Algebra Package)
https://numpy.org/install/#numpy-packages--accelerated-linear-algebra-libraries
BLAS/LAPACK를 활용한 가속화 사용을 위해 NumPy 소스 코드르 직접 빌드할 때, 연결되는 라이브러리를 지정할 수 있습니다.
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check | 
BLAS(Basic Linear Algebra Subprograms)와 LAPACK(Linear Algebra Package)
https://numpy.org/install/#numpy-packages--accelerated-linear-algebra-libraries
BLAS/LAPACK를 활용한 가속화 사용을 위해 NumPy 소스 코드르 직접 빌드할 때, 연결되는 라이브러리를 지정할 수 있습니다.
Build from source.
pip install cython pybind11
pip install --no-binary :all: numpy
| # 파이썬 환경 생성 및 활성화 | |
| conda create --name tf python=3.9 | |
| conda activate tf | |
| # CUDA+cuDNN 설치 및 설정 | |
| conda install -c conda-forge cudatoolkit=11.2.2 cudnn=8.1.0 | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/ | |
| mkdir -p $CONDA_PREFIX/etc/conda/activate.d | |
| echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh | 
How to install numpy on M1 Max, with the most accelerated performance (Apple's vecLib)? Here's the answer as of Dec 6 2021.
So that your Python is run natively on arm64, not translated via Rosseta.
$ bash Miniforge3-MacOSX-arm64.sh| name: pydeep | |
| channels: | |
| - defaults | |
| - conda-forge | |
| - nvidia | |
| dependencies: | |
| - python=3.9 | |
| - pip | |
| - pandas | |
| - matplotlib | 
| name: pydeep | |
| channels: | |
| - defaults | |
| - conda-forge | |
| - apple | |
| dependencies: | |
| - python=3.9 | |
| - pip | |
| - pandas | |
| - matplotlib | 
Lines starting with # mean the commands have to be executed by root user under Linux shell (WSL distro).
All other commands have to be executed under Windows-PowerShell as Administrator.
New-VHD support.vhdx -SizeBytes 25GB -Dynamic -BlockSizeBytes 1MB
Write-Output "\\.\PhysicalDrive$((Mount-VHD -Path support.vhdx -PassThru | Get-Disk).Number)"| ./configure --enable-cblas --enable-threading=openmp auto | |
| make | |
| make check | |
| sudo make install |