728x90

**Disclaimer - AMD GPU 관련 정보는 전부 Disregard 하세요.

sudo apt install git
sudo apt install openjdk-11-jdk
sudo apt install apt-transport-https curl gnupg
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt update && sudo apt install bazel-3.7.2
sudo unlink /usr/bin/bazel
sudo ln -s /usr/bin/bazel-3.7.2 /usr/bin/bazel

 

bazel --version

https://github.com/bazelbuild/bazel/releases/tag/3.7.2

chmod +x bazel-3.7.2-installer-linux-x86_64.sh
sudo ./bazel-3.7.2-installer-linux-x86_64.sh
git clone https://github.com/tensorflow/tensorflow
cd tensorflow
git checkout r2.7
sudo apt install python3-pip
pip3 install six numpy wheel
pip3 install keras_preprocessing

 

for AMD GPU user only.

sudo apt install libnuma-dev
sudo apt install llvm

https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-22-20

 

Radeon™ Software for Linux® 22.20 Release Notes

Article Number RN-AMDGPU-UNIFIED-LINUX-22-20 Release Date: June 28, 2022 This article provides information on the latest version of Radeon™ Software for Linux®. Radeon™ Software for Linux® 22.20 Highlights Introducing support for Ubuntu 22.04 and Ubu

www.amd.com

sudo amdgpu-install --usecase=rocm,hip,mllib --no-dkms

관련문서
https://amdgpu-install.readthedocs.io/en/latest/install-script.html#

sudo usermod -a -G video $LOGNAME
sudo usermod -a -G render $LOGNAME
sudo reboot
apt show rocm-libs
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin' | sudo tee -a /etc/profile.d/rocm.sh
sudo ldconfig

Tensorflow pre-install configuration

./configure
infinity@infinity-ubuntu:~/tensorflow$ ./configure
You have bazel 3.7.2 installed.
Please specify the location of python. [Default is /usr/bin/python3]: 


Found possible Python library paths:
  /usr/lib/python3/dist-packages
  /usr/local/lib/python3.8/dist-packages
Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]

Do you wish to build TensorFlow with ROCm support? [y/N]: y
ROCm support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.

Do you wish to download a fresh release of clang? (Experimental) [y/N]: n
Clang will not be downloaded.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]: 


Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n
Not configuring the WORKSPACE for Android builds.

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
	--config=mkl         	# Build with MKL support.
	--config=mkl_aarch64 	# Build with oneDNN and Compute Library for the Arm Architecture (ACL).
	--config=monolithic  	# Config for mostly static monolithic build.
	--config=numa        	# Build with NUMA support.
	--config=dynamic_kernels	# (Experimental) Build kernels into separate shared objects.
	--config=v1          	# Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
	--config=nogcp       	# Disable GCP support.
	--config=nonccl      	# Disable NVIDIA NCCL support.
Configuration finished
bazel clean --expunge
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

for AMD user Only

sudo apt install rocm-libs miopen-hip
bazel build --config=opt --config=rocm //tensorflow/tools/pip_package:build_pip_package

 

./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
ERROR: tensorflow-rocm 2.11.0.540 has requirement flatbuffers>=2.0, but you'll have flatbuffers 1.12 which is incompatible.
ERROR: tensorflow-rocm 2.11.0.540 has requirement keras<2.12,>=2.11.0, but you'll have keras 2.9.0 which is incompatible.
ERROR: tensorflow-rocm 2.11.0.540 has requirement tensorboard<2.12,>=2.11, but you'll have tensorboard 2.9.1 which is incompatible.
ERROR: tensorflow-rocm 2.11.0.540 has requirement tensorflow-estimator<2.12,>=2.11.0, but you'll have tensorflow-estimator 2.9.0 which is incompatible.
pip3 install --upgrade /tmp/tensorflow_pkg/tensorflow-2.9.3-cp38-cp38-linux_x86_64.whl

'Dev_Note > Krafton Jungle' 카테고리의 다른 글

아이디어 피칭 방법과 순서  (0) 2023.01.29
vue.js + electron 개발 환경 세팅  (0) 2023.01.24
OpenCV 개발환경 세팅  (0) 2023.01.20
Project RoomFit Figma Wireframe  (0) 2023.01.20
Reminder : 팀 리더로서의 역할  (0) 2023.01.20

+ Recent posts