Last active
March 7, 2024 12:14
-
-
Save smooker/3282082c18e8fbcc2cafcddc81b1c50e to your computer and use it in GitHub Desktop.
TensorFlow build from source on Gentoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir ~/src/tf | |
cd ~/src/tf | |
git clone --recursive https://github.com/tensorflow/tensorflow.git | |
git clone --recursive https://github.com/bazelbuild/bazel.git #not needed. there is baselisk in portage | |
### THIS HAS TO BE CLEANED | |
emerge dev-build/bazelisk | |
sw1 /mnt/wd/smooker/src/tf/tensorflow # cat /etc/portage/package.use/cuda.use | |
dev-util/nvidia-cuda-toolkit examples nsight debugger profiler sanitizer | |
emerge dev-libs/cudnn #not needed | |
sw1 /mnt/wd/smooker/src/tf/tensorflow # cat /etc/portage/package.license | |
www-client/google-chrome google-chrome | |
www-client/google-chrome-beta google-chrome | |
www-client/google-chrome-unstable google-chrome | |
www-client/vivaldi Vivaldi | |
media-libs/faac MPEG-4 | |
sys-kernel/linux-firmware @BINARY-REDISTRIBUTABLE | |
dev-util/nvidia-cuda-toolkit NVIDIA-CUDA | |
dev-libs/cudnn NVIDIA-cuDNN | |
wget -c "https://developer.download.nvidia.com/compute/machine-learning/tensorrt/secure/8.6.1/tars/TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-12.0.tar.gz?iUUqJ2rNWX88YwbVyz1pGyqTEHMOPKaWi9EeXpXCGdPCPOxqLaRiRDif4gCMGjOvA3To_pfTRbPQWpi6usn_4uSSP | |
SOfEpumMBcgi09GPtqoLD7nIlcryU6hSup3g_gUCnZ0COlvEmc4GvPD-hJj9anLgdYqDgGtdPcvVktc5qOw3Tyni73AEfOXMiX-uv0eJPnLCl6nWUQurbPislBP0u4GRXuu&t=eyJscyI6ImdzZW8iLCJsc2QiOiJodHRwczovL3d3dy5nb29nbGUuY29tLyJ9" | |
tar xf .... | |
wget https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.0.0.312_cuda12-archive.tar.xz | |
tar xf ... | |
sf1 /home/smooker/src/tf/cudnn-linux-x86_64-9.0.0.312_cuda12-archive # cp -rav ./include/* /opt/cuda/include/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment