Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Bloc de code
su - pod
sudo apt update
sudo apt install git curl nfs-common
sudo apt install python3-pip
sudo apt install virtualenvwrapper
sudo apt install default-libmysqlclient-dev

vi .bashrc
	export WORKON_HOME=$HOME/.virtualenvs
	export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
	source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

source .bashrc
mkvirtualenv --system-site-packages --python=/usr/bin/python3 django_pod3
sudo mkdir /usr/local/django_projects
ln -s /usr/local/django_projects django_projects
cd django_projects
sudo chown pod:pod /usr/local/django_projects
( git config --global http.proxy http://**URL PROXY**:**PORT PROXY** ) ## Si nécessaire ##
git clone https://github.com/EsupPortail/Esup-Pod.git podv3
cd podv3/
pip3 install -r requirements.txt
pip3 install mysqlclient==2.1.1

sudo apt install imagemagick
## COPY DU SETTINGS DEPUIS LE FRONTAL + ADAPTATION SI NÉCESSAIRE, pod/custom/settings_local.py
sudo chown pod:pod pod/custom/settings_local.py
vi pod/custom/settings_local.py

...

Bloc de code
su - pod
mkdir nvidia
cd nvidia/

wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb

sudo apt update
sudo apt install nvidia-kernel-open-dkms
sudo apt install nvidia-driver
sudo apt install cuda-drivers

reboot

su - pod
sudo apt install nvidia-cuda-toolkit

reboot

su - pod

## POUR VÉRIFIER LES VERSIONS NVIDIA ET CUDA INSTALLÉES ##
nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08              Driver Version: 545.23.08    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA RTX A6000               On  | 00000000:3B:00.0 Off |                  Off |
| 30%   26C    P8              15W / 300W |      5MiB / 49140MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

...

Installation/compilation/paramétrage de ffmpeg


Bloc de code
su - pod

sudo apt update
sudo apt install yasm cmake libtool unzip libnuma-dev
sudo apt install build-essential yasm cmake libtool libc6 libc6-dev unzip wget libnuma1 libnuma-dev -s  ## Pour vérifier qu'il ne manque pas de paquets ## Installer les paquets manquants si nécessaire ##
sudo apt install pkg-config
sudo apt install libnvidia-encode1 libx264-dev libfdk-aac-dev libmp3lame-dev

cd ~/nvidia/
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
sudo make install

cd ..
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg/
cd ffmpeg/
./configure --enable-cuda --enable-cuvid --enable-nvdec --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-libfdk-aac --enable-cuda-llvm --enable-ffnvcodec --enable-libmp3lame
make -j 8
sudo make install

...