HPE CRAY 자료 공유

[slurm] rpmbuild with gpu 본문

Applications/Scheduler

[slurm] rpmbuild with gpu

CRAY KOREA Blog 2023. 11. 14. 15:25

※ slurm gres.conf 사용을 위한 간단한 예제

 

- cuda toolkit 설치

$ wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
$ sudo sh cuda_11.8.0_520.61.05_linux.run

 

- rpmbuild 옵션에 "--with-nvml"을 추가

$ rpmbuild --define "_with_nvml --with-nvml=/usr/local/cuda-11.8" -ta slurm-22.05.6.tar.bz2

 

- gpu 라이브러리 포함 확인

$ cd ${HOME}/rpmbuild/RPMS/x86_64
$ rpm -qlp slurm-22.05.6-1.el8.x86_64.rpm | grep -i nvml
/usr/lib64/slurm/gpu_nvml.so

 

'Applications > Scheduler' 카테고리의 다른 글

[slurm] debuild with gpu  (1) 2024.01.13
[Build] slurm installation(RHEL 8.6)  (1) 2023.11.14
[Ubuntu] Slurm source install  (0) 2021.09.14
PBS vs Slurm  (0) 2021.08.06
[slurm] 작업 노드 지정  (0) 2021.07.23