...
| Bloc de code |
|---|
cd /etc/init.d/ sudo -E wget https://raw.githubusercontent.com/celery/celery/main/extra/generic-init.d/celeryd sudo chmod u+x /etc/init.d/celeryd sudo vi /etc/default/celeryd CELERYD_NODES="worker5" # Nom du/des worker(s). Ajoutez autant de workers que de tache à executer en paralelle. DJANGO_SETTINGS_MODULE="pod.settings" # settings de votre Pod CELERY_BIN="/home/pod/.virtualenvs/django_pod3/bin/celery" # répertoire source de celery CELERY_APP="pod.main" # application où se situe celery CELERYD_CHDIR="/usr/local/django_projects/podv3" # répertoire du projet Pod (où se trouve manage.py) CELERYD_OPTS="--time-limit=86400 --concurrency=1 --max-tasks-per-child=1 --prefetch-multiplier=1" # options à appliquer en plus sur le comportement du/des worker(s) CELERYD_LOG_FILE="/var/log/celery/%N.log" # fichier log CELERYD_PID_FILE="/var/run/celery/%N.pid" # fichier pid CELERYD_USER="pod" # utilisateur système utilisant celery CELERYD_GROUP="pod" # groupe système utilisant celery CELERY_CREATE_DIRS=1 # si celery dispose du droit de création de dossiers CELERYD_LOG_LEVEL="INFO" # niveau d'information qui seront inscrit dans les logs sudo /etc/init.d/celeryd start celery -A pod.main worker -l info tail -f /var/log/celery/worker5.log -n200 |
Instaler Installer + configurer/autoriser les accès NFS
...
| Bloc de code |
|---|
deb http://ftp.fr.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb-src http://ftp.fr.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware # bookworm-updates, to get updates before a point release is made; # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports deb http://ftp.fr.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware deb-src http://ftp.fr.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware |
Ajout des sources "nvidiaNVIDIA" pour une installation depuis la distrib des dernières versions
| 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 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 VERIFIERVÉRIFIER LES VERSION 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 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 |
...