Jetson & 머신러닝/삭제
[삭제] pyCUDA, LLVM, numba, keras install on jetson Xavier
아크리엑터
2024. 6. 30. 19:43
반응형
pyCUDA 설치
아래 주소에서 파일 다운로드
http://pypi.org/project/pycuda/#files
$ tar xvfz pycuda-2020.1.tar.gz
$ cd pycuda-2020.1
$ ./configure.py
$ make -j4
$ sudo python3 setup.py install
$ sudo pip3 install .
LLVM 설치
$ wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-10.0.0.src.tar.xz
--2021-03-24 21:47:23-- https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-10.0.0.src.tar.xz
Resolving github.com (github.com)... 15.164.81.167
Connecting to github.com (github.com)|15.164.81.167|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/75821432/6a7d0680-6ddd-11ea-981a-8fe49cad1bb2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210324T124723Z&X-Amz-Expires=300&X-Amz-Signature=d739cf67306da2b6db1d1e165af005dbce3f6551f8dee93a47cbd5236a484399&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=75821432&response-content-disposition=attachment%3B%20filename%3Dllvm-10.0.0.src.tar.xz&response-content-type=application%2Foctet-stream [following]
--2021-03-24 21:47:23-- https://github-releases.githubusercontent.com/75821432/6a7d0680-6ddd-11ea-981a-8fe49cad1bb2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210324T124723Z&X-Amz-Expires=300&X-Amz-Signature=d739cf67306da2b6db1d1e165af005dbce3f6551f8dee93a47cbd5236a484399&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=75821432&response-content-disposition=attachment%3B%20filename%3Dllvm-10.0.0.src.tar.xz&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.109.154, 185.199.108.154, 185.199.110.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.109.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35733192 (34M) [application/octet-stream]
Saving to: ‘llvm-10.0.0.src.tar.xz’
llvm-10.0.0.src.tar.xz 100%[========================================>] 34.08M 18.0MB/s in 1.9s
2021-03-24 21:47:26 (18.0 MB/s) - ‘llvm-10.0.0.src.tar.xz’ saved [35733192/35733192]
$ tar -xvf llvm-10.0.0.src.tar.xz
$ cd llvm-10.0.0.src/
$ mkdir build
$ cd build
$ cmake ../ -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64"
$ make -j4
$ sudo make install
$ sudo cp bin/llvm-lit /usr/local/bin/.
$ echo "export LLVM_CONFIG=\""/usr/local/bin/llvm-config\"" >> ~/.bashrc
$ echo "alias llvm='/usr/local/bin/llvm-lit" >> ~/.bashrc
$ source ~/.bashrc
$ sudo pip3 install llvmlite
numba 설치
$ sudo pip3 install numba
WARNING: The directory '/home/igi/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting numba
Downloading numba-0.53.0.tar.gz (2.2 MB)
|████████████████████████████████| 2.2 MB 1.3 MB/s
Collecting llvmlite<0.37,>=0.36.0rc1
Downloading llvmlite-0.36.0.tar.gz (126 kB)
|████████████████████████████████| 126 kB 2.3 MB/s
Collecting numpy>=1.15
Downloading numpy-1.19.5-cp36-cp36m-manylinux2014_aarch64.whl (12.4 MB)
|████████████████████████████████| 12.4 MB 2.5 MB/s
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from numba) (53.0.0)
Building wheels for collected packages: numba, llvmlite
Building wheel for numba (setup.py) ...
keras 설치
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
sudo pip3 install scipy keras
반응형