...
Install the following before installing CERN ROOT TMVA
You can try to install (https://lambdalabs.com/lambda-stack-deep-learning-software
wget -nv -O- https://lambdalabs.com/install-lambda-stack.sh | sh -
sudo reboot
If you use pip install directly for each of these, I think you will have to move your .local
mv ~/.local ~/.local.bak
For virtual environment installs (This is recommended for both TensorFlow and ROOT)
Miniconda installation
Check your: pip -v list | grep -v "/usr/lib/python3/dist-packages" * This will show you any package installed that is not part of Lambda Stack or Ubuntu (Ideally these other packages should only be in a virtual environment Python venv or Anaconda/Miniconda 1. Install Miniconda: From: https://docs.conda.io/en/latest/miniconda.html#linux-installers Current version for Python 3.10: $ wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh $ bash Miniconda3-py310_22.11.1-1-Linux-x86_64.sh 2. Activate the environment for miniconda to be active: $ . $HOME/.bashrc If you want Miniconda installed but not always active, I would not mix Miniconda with python venv, since Miniconda blocks the default install. I do the following so conda is not always activated, and I can switch between Miniconda and Python venv: (base) $ conda deactivate $ conda deactivate $ conda config --set auto_activate_base false 3. Create a environment: conda config --set auto_activate_base false 3. Create a environment:
sudo apt install nvidia-driver-525
conda create --name tf_gpu -c nvidia -c conda-forge tensorflow=2.7 cudatoolkit=11.4 cudnn
a. Create from the command line: $ conda create --name tensorrt_quick tensorflow -c nvidia b. Activate the Miniconda environment: $ conda activate tensorrt_quick c. Install other dependencies: $tensorrt_quick) $ pip install pandas scikit-learn matplotlib numpy 4. Run the code: (tensorrt_quick) $ python quick.py * I did not need to set LD_LIBRARY_PATH or anything
...
Installation of ROOT:
Build from source using - https://root.cern/install/build_from_source/
prerequisits
sudo apt-get install gfortran libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev libgsl0-dev qtwebengine5-dev
sudo apt-get install libxft-dev
...
libxext-dev python libssl-dev
$git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
$mkdir <builddir> <installdir>
$cd <builddir>
cmake -DCMAKE_INSTALL_PREFIX=/home/dir/root_inst -Dcuda=ON -Dcudnn=ON -Dtmva-gpu=ON -Dtmva-cpu=ON /home/dustin/root_src/
cmake --build . --target install j5
source /home/dustin/root_inst/bin/thisroot.sh