OS환경 : Oracle Linux 7.6 (64bit)
DB 환경 : PostgreSQL 10 + PG-Strom 2.2
방법 : linux7.6에 PostgreSQL 10 + PG-Strom 2.2 구성하기
GPU가 있는 서버 환경에서 PostgreSQL을 사용하면서 CPU와 함께 GPU를 사용하기 위해서
PG-Strom(PG-스트롬)이라는 확장프로그램이 필요함
오픈소스로서 일단은 기본 버전은 무료인듯 하지만 여러개의 GPU를 사용할 때에는 라이센스를
구매해야 하는것으로 보임
아래는 http://heterodb.github.io/pg-strom/install/#license-activation 에서 가져온 내용
1 2 3 4 | License activation License activation is needed to use all the features of NVME-Strom module, provided by HeteroDB,Inc. You can operate the system without license, but features below are restricted. - Multiple GPUs support - Striping support (md-raid0) at SSD-to-GPU Direct SQL |
구글번역기로로 번역한 내용
1 2 3 4 | 라이센스 활성화 HeteroDB, Inc에서 제공하는 NVME-Strom 모듈의 모든 기능을 사용하려면 라이센스 활성화가 필요합니다. 라이센스없이 시스템을 작동 할 수 있지만 아래 기능은 제한됩니다. |
구성 전 체크리스트(구글 번역 후 어색한 문장 수정)
서버 하드웨어
CUDA 툴킷이 지원하는 Linux 운영 체제를 실행할 수있는 일반 x86_64 하드웨어가 필요함
그외 CPU, 스토리지 및 네트워크 장치에 대한 특별한 요구 사항이 없음
note002 : HW Validation List 는 하드웨어 선택에 도움이 될 수 있음
SSD 간 GPU 직접 SQL 실행에는 NVMe 사양을 지원하고 GPU가있는 동일한
PCIe 루트 컴플렉스 아래에 설치되는 SSD 장치가 필요함
GPU 장치
PG-Strom에는 CUDA 툴킷이 지원하는 시스템에 적어도 하나의 GPU 장치가
필요하며 컴퓨팅 기능 6.0 (파스칼 생성) 이상이 있습니다(?)
SSD-GPU Direct SQL 실행의 지원 매트릭스는 이 목록을 확인 하면됨
note001 : GPU 가용성 매트릭스에 자세한 정보
운영 체제
PG-Strom에는 x86_64 아키텍처 용 Linux 운영 체제 및 CUDA 툴킷이 지원하는 배포판이 필요함
권장 사항은 Red Hat Enterprise Linux 또는 CentOS 버전 7.x 시리즈임
SSD-to-GPU Direct SQL 실행에는 Red Hat Enterprise Linux 또는 CentOS 버전 7.3 이상이 필요함
PostgreSQL
PG-Strom에는 PostgreSQL 버전 9.6 이상이 필요함
PostgreSQL v9.6은 CPU 병렬 실행 또는 GROUP BY계획을 위해
사용자 정의 스캔 인터페이스를 갱신 하므로 확장 모듈을 통해 사용자 정의 계획을 제공 할 수 있음(?)
CUDA 툴킷
PG-Strom에는 CUDA 툴킷 버전 9.2 이상이 필요함
PG-Strom에서 내부적으로 사용하는 일부 CUDA 드라이버 API는 이전 버전에 포함되어 있지 않음
os 설치
os 설치 시 Minimal installation로 설치하되 Debugging Tools와 Development Tools를 선택하여 설치
필요 파일 다운로드
yum 이용시 http://heterodb.github.io/pg-strom/install/ 의 Setup EPEL Repository 부분 확인해야함
다운로드 한 파일 목록
1 2 3 4 5 | pg_strom-2.2-2.tar.gz pg_strom-PG10-2.2-2.el7.src.rpm pg_strom-PG10-2.2-2.el7.x86_64.rpm pg_strom-PG10-debuginfo-2.2-2.el7.x86_64.rpm nvme_strom-2.1-1.el7.x86_64.rpm |
그리고 OS cd 를 이용해 local yum repo 를 설정하여 사용함
local yum repo 사용방법 : https://positivemh.tistory.com/470
CUDA 설치전 확인 사항
CUDA 가능 GPU가 있는지 확인
1 2 | # lspci | grep -i nvidia 8a:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 SXM2 16GB] (rev a1) |
1개의 GPU가 존재함
리눅스 버전이 7.3 이상인지 확인
1 2 3 | # uname -m && cat /etc/redhat-release x86_64 Red Hat Enterprise Linux Server release 7.6 (Maipo) |
gcc가 설치되어 있는지 확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-36.0.1) (GCC) |
시스템에 올바른 커널 헤더 및 개발 패키지가 설치되어 있는지 확인
CUDA 드라이버를 사용하려면 드라이버를 설치할 때뿐만 아니라 드라이버를 다시 작성할 때마다 실행중인 커널 버전에 대한 커널 헤더 및 개발 패키지가 설치되어 있어야함
예를 들어서 시스템에서 커널 버전 3.17.4-301을 실행중인 경우 3.17.4-301 커널 헤더 및 개발 패키지도 설치해야함
CUDA 드라이버를 설치하기 전에 커널 버전을 변경할 때마다 올바른 버전의 커널 헤더 및 개발 패키지를 수동으로 설치하는 것이 가장 좋음
시스템이 실행중인 커널의 버전 확인
1 2 | # uname -r 4.14.35-1818.3.3.el7uek.x86_64 |
참고 : 사용중인 Linux 커널 버전을 변경하는 시스템 업데이트를 수행하는 경우 올바른 커널 헤더 및 커널 개발 패키지가 설치되어 있는지 확인하려면 아래 명령을 다시 실행해야함, 그렇지 않으면 CUDA 드라이버가 새 커널에서 작동하지 않음
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # cd /run/media/root/OL-7.6\ Server.x86_64/Packages/ # ls -al kernel-* -rw-r--r--. 1 root root 50484460 Nov 12 07:28 kernel-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 7343820 Nov 12 07:28 kernel-abi-whitelists-3.10.0-957.el7.noarch.rpm -rw-r--r--. 1 root root 52650864 Nov 12 07:28 kernel-debug-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 17583572 Nov 12 07:28 kernel-debug-devel-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 17515280 Nov 12 07:28 kernel-devel-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 19227696 Nov 12 07:28 kernel-doc-3.10.0-957.el7.noarch.rpm -rw-r--r--. 1 root root 8354940 Nov 12 07:28 kernel-headers-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 7434696 Nov 12 07:28 kernel-tools-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 7338008 Nov 12 07:28 kernel-tools-libs-3.10.0-957.el7.x86_64.rpm -rw-r--r--. 1 root root 53653608 Nov 12 07:28 kernel-uek-4.14.35-1818.3.3.el7uek.x86_64.rpm -rw-r--r--. 1 root root 55662780 Nov 12 07:28 kernel-uek-debug-4.14.35-1818.3.3.el7uek.x86_64.rpm -rw-r--r--. 1 root root 15042420 Nov 12 07:28 kernel-uek-debug-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm -rw-r--r--. 1 root root 14957368 Nov 12 07:28 kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm -rw-r--r--. 1 root root 6909084 Nov 12 07:28 kernel-uek-doc-4.14.35-1818.3.3.el7uek.noarch.rpm # rpm -ivh kernel-headers-3.10.0-957.el7.x86_64.rpm Preparing... ################################# [100%] package kernel-headers-3.10.0-957.el7.x86_64 is already installed # rpm -ivh kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm warning: kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing... ################################# [100%] package kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64 is already installed |
1 | # yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) |
해당 웹페이지에서 검색에 uname -r 에 나온 내용입력
devel-(uname -r에 나온 이름)을 찾아서 다운로드
해당 커널 설치
1 2 3 4 | # rpm -ivh kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm warning: kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing... ################################# [100%] package kernel-uek-devel-4.14.35-1818.3.3.el7uek.x86_64 is already installed |
CUDA 설치파일 다운로드
linux - x86_64 - RHEL - 7 - rpm(local)
위와 같이 선택하면 설치할 파일이 나옴
나는 직접 wget 뒤에 있는 주소를 복사하여 웹에서 다운로드 받은 후
ftp를 이용해 서버에 파일을 넣음
CUDA rpm 설치
1 2 3 4 5 | # rpm -ivh cuda-repo-rhel7-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm warning: cuda-repo-rhel7-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm: Header V3 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY Preparing... ################################# [100%] Updating / installing... 1:cuda-repo-rhel7-10-1-local-10.1.2################################# [100%] |
nvidia 드라이버 설치
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # yum install nvidia-driver-latest-dkms -y Loaded plugins: langpacks, ulninfo Resolving Dependencies --> Running transaction check . . --> Finished Dependency Resolution Error: Package: 1:libglvnd-opengl-1.0.1-0.6.git5baa1e5.el7.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: libglvnd(x86-64) = 1:1.0.1-0.6.git5baa1e5.el7 Installed: 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 (@anaconda/7.6) libglvnd(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 Available: 1:libglvnd-1.0.1-0.6.git5baa1e5.el7.x86_64 (cuda-10-1-local-10.1.243-418.87.00) libglvnd(x86-64) = 1:1.0.1-0.6.git5baa1e5.el7 Error: Package: 3:nvidia-driver-latest-dkms-libs-418.87.00-2.el7.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: libvdpau(x86-64) >= 0.5 Error: Package: 3:nvidia-driver-latest-dkms-libs-418.87.00-2.el7.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: vulkan-filesystem Error: Package: 3:kmod-nvidia-latest-dkms-418.87.00-2.el7.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: dkms You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest |
몇가지 패키지 때문에 바로 설치되지 않음
해당 패키지들 설치
먼저 https://centos.pkgs.org/7/centos-x86_64/libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm.html 에서
libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 5 | # rpm -ivh libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm warning: libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libglvnd-opengl-1:1.0.1-0.8.git5b################################# [100%] |
그다음 https://centos.pkgs.org/7/centos-x86_64/libvdpau-1.1.1-3.el7.x86_64.rpm.html 에서
libvdpau-1.1.1-3.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 5 | # rpm -ivh libvdpau-1.1.1-3.el7.x86_64.rpm warning: libvdpau-1.1.1-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libvdpau-1.1.1-3.el7 ################################# [100%] |
그다음 https://centos.pkgs.org/7/centos-x86_64/vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm.html 에서
vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm 다운로드 후 설치
1 2 3 4 5 | # rpm -ivh vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm warning: vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:vulkan-filesystem-1.1.97.0-1.el7 ################################# [100%] |
그다음 https://centos.pkgs.org/7/epel-x86_64/dkms-2.7.1-1.el7.noarch.rpm.html 에서
dkms-2.7.1-1.el7.noarch.rpm 다운로드 후 설치
1 2 3 4 | # rpm -ivh dkms-2.7.1-1.el7.noarch.rpm warning: dkms-2.7.1-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY error: Failed dependencies: elfutils-libelf-devel is needed by dkms-2.7.1-1.el7.noarch |
1 2 3 4 5 | # cd /etc/yum.repos.d/ # ls cuda-10-1-local-10.1.243-418.87.00.repo local.repobak # mv cuda-10-1-local-10.1.243-418.87.00.repo cuda-10-1-local-10.1.243-418.87.00.repobak # mv local.repobak local.repo |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # yum install -y dkms-2.7.1-1.el7.noarch.rpm . . Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: dkms noarch 2.7.1-1.el7 /dkms-2.7.1-1.el7.noarch 219 k Installing for dependencies: elfutils-libelf-devel x86_64 0.176-2.el7 ol7_latest 39 k zlib-devel x86_64 1.2.7-18.el7 ol7_latest 49 k Updating for dependencies: elfutils x86_64 0.176-2.el7 ol7_latest 304 k elfutils-libelf x86_64 0.176-2.el7 ol7_latest 194 k elfutils-libs x86_64 0.176-2.el7 ol7_latest 290 k Transaction Summary ============================================================================================================================= Install 1 Package (+2 Dependent packages) Upgrade ( 3 Dependent packages) Total size: 1.1 M Total download size: 876 k Downloading packages: No Presto metadata available for ol7_latest warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/elfutils-0.176-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Public key for elfutils-0.176-2.el7.x86_64.rpm is not installed (1/5): elfutils-0.176-2.el7.x86_64.rpm | 304 kB 00:00:00 (2/5): elfutils-libelf-devel-0.176-2.el7.x86_64.rpm | 39 kB 00:00:00 (3/5): elfutils-libelf-0.176-2.el7.x86_64.rpm | 194 kB 00:00:00 (4/5): zlib-devel-1.2.7-18.el7.x86_64.rpm | 49 kB 00:00:00 (5/5): elfutils-libs-0.176-2.el7.x86_64.rpm | 290 kB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------- Total 987 kB/s | 876 kB 00:00:00 |
repository를 local repo에서 cuda repo로 변경후 아래 yum 사용
1 2 3 4 5 | # cd /etc/yum.repos.d/ # ls cuda-10-1-local-10.1.243-418.87.00.repo local.repobak # mv cuda-10-1-local-10.1.243-418.87.00.repobak cuda-10-1-local-10.1.243-418.87.00.repo # mv local.repo local.repobak |
다시 nvidia 드라이버 설치 시도(정상적으로 설치됨)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | # yum install nvidia-driver-latest-dkms -y Loaded plugins: langpacks, ulninfo cuda-10-1-local-10.1.243-418.87.00 | 2.5 kB 00:00:00 cuda-10-1-local-10.1.243-418.87.00/primary_db | 51 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package nvidia-driver-latest-dkms.x86_64 3:418.87.00-2.el7 will be installed --> Processing Dependency: nvidia-xconfig-latest-dkms(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-modprobe-latest-dkms(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-libs(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-devel(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-cuda-libs(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-cuda(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-NvFBCOpenGL(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: nvidia-driver-latest-dkms-NVML(x86-64) = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: kmod-nvidia-latest-dkms = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: yum-plugin-nvidia for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: libnvidia-tls.so.418.87.00()(64bit) for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Processing Dependency: libnvidia-glcore.so.418.87.00()(64bit) for package: 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 --> Running transaction check ---> Package kmod-nvidia-latest-dkms.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-driver-latest-dkms-NVML.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-driver-latest-dkms-NvFBCOpenGL.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-driver-latest-dkms-cuda.x86_64 3:418.87.00-2.el7 will be installed --> Processing Dependency: nvidia-persistenced-latest-dkms = 3:418.87.00 for package: 3:nvidia-driver-latest-dkms-cuda-418.87.00-2.el7.x86_64 ---> Package nvidia-driver-latest-dkms-cuda-libs.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-driver-latest-dkms-devel.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-driver-latest-dkms-libs.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-modprobe-latest-dkms.x86_64 3:418.87.00-2.el7 will be installed ---> Package nvidia-xconfig-latest-dkms.x86_64 3:418.87.00-2.el7 will be installed ---> Package yum-plugin-nvidia.noarch 0:0.3-1.el7 will be installed --> Running transaction check ---> Package nvidia-persistenced-latest-dkms.x86_64 3:418.87.00-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: nvidia-driver-latest-dkms x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 5.6 M Installing for dependencies: kmod-nvidia-latest-dkms x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 13 M nvidia-driver-latest-dkms-NVML x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 568 k nvidia-driver-latest-dkms-NvFBCOpenGL x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 137 k nvidia-driver-latest-dkms-cuda x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 395 k nvidia-driver-latest-dkms-cuda-libs x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 32 M nvidia-driver-latest-dkms-devel x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 19 k nvidia-driver-latest-dkms-libs x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 45 M nvidia-modprobe-latest-dkms x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 72 k nvidia-persistenced-latest-dkms x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 100 k nvidia-xconfig-latest-dkms x86_64 3:418.87.00-2.el7 cuda-10-1-local-10.1.243-418.87.00 272 k yum-plugin-nvidia noarch 0.3-1.el7 cuda-10-1-local-10.1.243-418.87.00 9.9 k Transaction Summary ============================================================================================================================= Install 1 Package (+11 Dependent packages) Total download size: 97 M Installed size: 301 M Downloading packages: warning: /var/cuda-repo-10-1-local-10.1.243-418.87.00/kmod-nvidia-latest-dkms-418.87.00-2.el7.x86_64.rpm: Header V3 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY Public key for kmod-nvidia-latest-dkms-418.87.00-2.el7.x86_64.rpm is not installed ----------------------------------------------------------------------------------------------------------------------------- Total 336 MB/s | 97 MB 00:00:00 Retrieving key from file:///var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub Importing GPG key 0x7FA2AF80: Userid : "cudatools <cudatools@nvidia.com>" Fingerprint: ae09 fe4b bd22 3a84 b2cc fce3 f60f 4b3d 7fa2 af80 Package : cuda-repo-rhel7-10-1-local-10.1.243-418.87.00-1.0-1.x86_64 (installed) From : /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : yum-plugin-nvidia-0.3-1.el7.noarch 1/12 Installing : 3:nvidia-driver-latest-dkms-NVML-418.87.00-2.el7.x86_64 2/12 Installing : 3:kmod-nvidia-latest-dkms-418.87.00-2.el7.x86_64 3/12 Installing : 3:nvidia-driver-latest-dkms-libs-418.87.00-2.el7.x86_64 4/12 Installing : 3:nvidia-driver-latest-dkms-devel-418.87.00-2.el7.x86_64 5/12 Installing : 3:nvidia-driver-latest-dkms-NvFBCOpenGL-418.87.00-2.el7.x86_64 6/12 Installing : 3:nvidia-persistenced-latest-dkms-418.87.00-2.el7.x86_64 7/12 Installing : 3:nvidia-driver-latest-dkms-cuda-418.87.00-2.el7.x86_64 8/12 Installing : 3:nvidia-driver-latest-dkms-cuda-libs-418.87.00-2.el7.x86_64 9/12 Installing : 3:nvidia-modprobe-latest-dkms-418.87.00-2.el7.x86_64 10/12 Installing : 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 11/12 Installing : 3:nvidia-xconfig-latest-dkms-418.87.00-2.el7.x86_64 12/12 Verifying : 3:nvidia-xconfig-latest-dkms-418.87.00-2.el7.x86_64 1/12 Verifying : 3:nvidia-driver-latest-dkms-libs-418.87.00-2.el7.x86_64 2/12 Verifying : 3:nvidia-persistenced-latest-dkms-418.87.00-2.el7.x86_64 3/12 Verifying : 3:nvidia-driver-latest-dkms-devel-418.87.00-2.el7.x86_64 4/12 Verifying : 3:nvidia-driver-latest-dkms-NVML-418.87.00-2.el7.x86_64 5/12 Verifying : yum-plugin-nvidia-0.3-1.el7.noarch 6/12 Verifying : 3:kmod-nvidia-latest-dkms-418.87.00-2.el7.x86_64 7/12 Verifying : 3:nvidia-driver-latest-dkms-418.87.00-2.el7.x86_64 8/12 Verifying : 3:nvidia-driver-latest-dkms-NvFBCOpenGL-418.87.00-2.el7.x86_64 9/12 Verifying : 3:nvidia-driver-latest-dkms-cuda-418.87.00-2.el7.x86_64 10/12 Verifying : 3:nvidia-driver-latest-dkms-cuda-libs-418.87.00-2.el7.x86_64 11/12 Verifying : 3:nvidia-modprobe-latest-dkms-418.87.00-2.el7.x86_64 12/12 Installed: nvidia-driver-latest-dkms.x86_64 3:418.87.00-2.el7 Dependency Installed: kmod-nvidia-latest-dkms.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-NVML.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-NvFBCOpenGL.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-cuda.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-cuda-libs.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-devel.x86_64 3:418.87.00-2.el7 nvidia-driver-latest-dkms-libs.x86_64 3:418.87.00-2.el7 nvidia-modprobe-latest-dkms.x86_64 3:418.87.00-2.el7 nvidia-persistenced-latest-dkms.x86_64 3:418.87.00-2.el7 nvidia-xconfig-latest-dkms.x86_64 3:418.87.00-2.el7 yum-plugin-nvidia.noarch 0:0.3-1.el7 Complete! |
cuda 설치
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # yum install cuda -y Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### Resolving Dependencies. . . --> Finished Dependency Resolution Error: Package: cuda-samples-10-1-10.1.243-1.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: mesa-libGLU-devel Error: Package: cuda-samples-10-1-10.1.243-1.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: freeglut-devel Error: Package: cuda-samples-10-1-10.1.243-1.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: libXi-devel Error: Package: cuda-samples-10-1-10.1.243-1.x86_64 (cuda-10-1-local-10.1.243-418.87.00) Requires: libXmu-devel You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest |
몇가지 패키지 때문에 바로 설치되지 않음
해당 패키지 설치
먼저 https://centos.pkgs.org/7/centos-x86_64/mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm.html 에서
mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm 다운로드 후 설치.. 했지만 의존성 문제가 너무 많아 yum으로 설치
repository를 cuda repo에서 local repo 로 변경후 아래 yum 사용
1 2 3 4 5 | # cd /etc/yum.repos.d/ # ls cuda-10-1-local-10.1.243-418.87.00.repo local.repobak # mv cuda-10-1-local-10.1.243-418.87.00.repo cuda-10-1-local-10.1.243-418.87.00.repobak # mv local.repobak local.repo |
yum 설치
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | # yum install mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### Examining mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm: mesa-libGLU-devel-9.0.0-4.el7.x86_64 Marking mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package mesa-libGLU-devel.x86_64 0:9.0.0-4.el7 will be installed --> Processing Dependency: mesa-libGLU(x86-64) = 9.0.0-4.el7 for package: mesa-libGLU-devel-9.0.0-4.el7.x86_64 ol7_UEKR5 | 2.5 kB 00:00:00 ol7_latest | 2.7 kB 00:00:00 (1/5): ol7_UEKR5/x86_64/updateinfo | 18 kB 00:00:00 (2/5): ol7_latest/x86_64/group | 810 kB 00:00:01 (3/5): ol7_latest/x86_64/updateinfo | 2.6 MB 00:00:03 (4/5): ol7_UEKR5/x86_64/primary_db | 3.9 MB 00:00:04 (5/5): ol7_latest/x86_64/primary_db | 22 MB 00:00:08 --> Processing Dependency: gl-manpages for package: mesa-libGLU-devel-9.0.0-4.el7.x86_64 --> Processing Dependency: pkgconfig(gl) for package: mesa-libGLU-devel-9.0.0-4.el7.x86_64 --> Processing Dependency: libGLU.so.1()(64bit) for package: mesa-libGLU-devel-9.0.0-4.el7.x86_64 --> Running transaction check ---> Package gl-manpages.noarch 0:1.1-7.20130122.el7 will be installed ---> Package mesa-libGL-devel.x86_64 0:18.3.4-5.el7 will be installed --> Processing Dependency: mesa-libGL = 18.3.4-5.el7 for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: mesa-khr-devel(x86-64) = 18.3.4-5.el7 for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: pkgconfig(xdamage) >= 1.1 for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: pkgconfig(libdrm) >= 2.4.75 for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: pkgconfig(xxf86vm) for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: pkgconfig(xext) for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: libglvnd-devel(x86-64) for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 --> Processing Dependency: pkgconfig(xfixes) for package: mesa-libGL-devel-18.3.4-5.el7.x86_64 ---> Package mesa-libGLU.x86_64 0:9.0.0-4.el7 will be installed --> Running transaction check ---> Package libXdamage-devel.x86_64 0:1.1.4-4.1.el7 will be installed ---> Package libXext-devel.x86_64 0:1.3.3-3.el7 will be installed ---> Package libXfixes-devel.x86_64 0:5.0.3-1.el7 will be installed ---> Package libXxf86vm-devel.x86_64 0:1.1.4-1.el7 will be installed ---> Package libdrm-devel.x86_64 0:2.4.97-2.el7 will be installed --> Processing Dependency: libdrm = 2.4.97-2.el7 for package: libdrm-devel-2.4.97-2.el7.x86_64 ---> Package libglvnd-devel.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed --> Processing Dependency: libglvnd-core-devel(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-devel-1.0.1-0.8.git5baa1e5.el7.x86_64 ---> Package mesa-khr-devel.x86_64 0:18.3.4-5.el7 will be installed ---> Package mesa-libGL.x86_64 0:18.0.5-3.el7 will be updated ---> Package mesa-libGL.x86_64 0:18.3.4-5.el7 will be an update --> Processing Dependency: mesa-libglapi = 18.3.4-5.el7 for package: mesa-libGL-18.3.4-5.el7.x86_64 --> Running transaction check ---> Package libdrm.x86_64 0:2.4.91-3.el7 will be updated ---> Package libdrm.x86_64 0:2.4.97-2.el7 will be an update ---> Package libglvnd-core-devel.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed ---> Package mesa-libglapi.x86_64 0:18.0.5-3.el7 will be updated --> Processing Dependency: mesa-libglapi = 18.0.5-3.el7 for package: mesa-libgbm-18.0.5-3.el7.x86_64 ---> Package mesa-libglapi.x86_64 0:18.3.4-5.el7 will be an update --> Running transaction check ---> Package mesa-libgbm.x86_64 0:18.0.5-3.el7 will be updated --> Processing Dependency: mesa-libgbm = 18.0.5-3.el7 for package: mesa-libEGL-18.0.5-3.el7.x86_64 ---> Package mesa-libgbm.x86_64 0:18.3.4-5.el7 will be an update --> Running transaction check ---> Package mesa-libEGL.x86_64 0:18.0.5-3.el7 will be updated ---> Package mesa-libEGL.x86_64 0:18.3.4-5.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: mesa-libGLU-devel x86_64 9.0.0-4.el7 /mesa-libGLU-devel-9.0.0-4.el7.x86_64 20 k Installing for dependencies: gl-manpages noarch 1.1-7.20130122.el7 ol7_latest 994 k libXdamage-devel x86_64 1.1.4-4.1.el7 ol7_latest 9.1 k libXext-devel x86_64 1.3.3-3.el7 ol7_latest 74 k libXfixes-devel x86_64 5.0.3-1.el7 ol7_latest 12 k libXxf86vm-devel x86_64 1.1.4-1.el7 ol7_latest 18 k libdrm-devel x86_64 2.4.97-2.el7 ol7_latest 143 k libglvnd-core-devel x86_64 1:1.0.1-0.8.git5baa1e5.el7 ol7_latest 19 k libglvnd-devel x86_64 1:1.0.1-0.8.git5baa1e5.el7 ol7_latest 11 k mesa-khr-devel x86_64 18.3.4-5.el7 ol7_latest 19 k mesa-libGL-devel x86_64 18.3.4-5.el7 ol7_latest 162 k mesa-libGLU x86_64 9.0.0-4.el7 ol7_latest 193 k Updating for dependencies: libdrm x86_64 2.4.97-2.el7 ol7_latest 151 k mesa-libEGL x86_64 18.3.4-5.el7 ol7_latest 108 k mesa-libGL x86_64 18.3.4-5.el7 ol7_latest 165 k mesa-libgbm x86_64 18.3.4-5.el7 ol7_latest 38 k mesa-libglapi x86_64 18.3.4-5.el7 ol7_latest 45 k Transaction Summary ============================================================================================================================= Install 1 Package (+11 Dependent packages) Upgrade ( 5 Dependent packages) Total size: 2.1 M Total download size: 2.1 M Is this ok [y/d/N]: y Downloading packages: No Presto metadata available for ol7_latest (1/16): libXdamage-devel-1.1.4-4.1.el7.x86_64.rpm | 9.1 kB 00:00:02 (2/16): libXext-devel-1.3.3-3.el7.x86_64.rpm | 74 kB 00:00:00 (3/16): libXfixes-devel-5.0.3-1.el7.x86_64.rpm | 12 kB 00:00:00 (4/16): gl-manpages-1.1-7.20130122.el7.noarch.rpm | 994 kB 00:00:03 (5/16): libdrm-2.4.97-2.el7.x86_64.rpm | 151 kB 00:00:00 (6/16): libXxf86vm-devel-1.1.4-1.el7.x86_64.rpm | 18 kB 00:00:01 (7/16): libdrm-devel-2.4.97-2.el7.x86_64.rpm | 143 kB 00:00:01 (8/16): libglvnd-core-devel-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 19 kB 00:00:01 (9/16): libglvnd-devel-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 11 kB 00:00:01 (10/16): mesa-libEGL-18.3.4-5.el7.x86_64.rpm | 108 kB 00:00:00 (11/16): mesa-libGL-18.3.4-5.el7.x86_64.rpm | 165 kB 00:00:00 (12/16): mesa-khr-devel-18.3.4-5.el7.x86_64.rpm | 19 kB 00:00:01 (13/16): mesa-libGLU-9.0.0-4.el7.x86_64.rpm | 193 kB 00:00:00 (14/16): mesa-libgbm-18.3.4-5.el7.x86_64.rpm | 38 kB 00:00:00 (15/16): mesa-libglapi-18.3.4-5.el7.x86_64.rpm | 45 kB 00:00:00 (16/16): mesa-libGL-devel-18.3.4-5.el7.x86_64.rpm | 162 kB 00:00:01 ----------------------------------------------------------------------------------------------------------------------------- Total 268 kB/s | 2.1 MB 00:00:08 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libdrm-2.4.97-2.el7.x86_64 1/22 Updating : mesa-libglapi-18.3.4-5.el7.x86_64 2/22 Installing : libXfixes-devel-5.0.3-1.el7.x86_64 3/22 Installing : libXext-devel-1.3.3-3.el7.x86_64 4/22 Installing : gl-manpages-1.1-7.20130122.el7.noarch 5/22 Installing : libXxf86vm-devel-1.1.4-1.el7.x86_64 6/22 Installing : libXdamage-devel-1.1.4-4.1.el7.x86_64 7/22 Updating : mesa-libgbm-18.3.4-5.el7.x86_64 8/22 Updating : mesa-libGL-18.3.4-5.el7.x86_64 9/22 Installing : libdrm-devel-2.4.97-2.el7.x86_64 10/22 Installing : mesa-libGLU-9.0.0-4.el7.x86_64 11/22 Installing : mesa-khr-devel-18.3.4-5.el7.x86_64 12/22 Installing : 1:libglvnd-core-devel-1.0.1-0.8.git5baa1e5.el7.x86_64 13/22 Installing : 1:libglvnd-devel-1.0.1-0.8.git5baa1e5.el7.x86_64 14/22 Installing : mesa-libGL-devel-18.3.4-5.el7.x86_64 15/22 Installing : mesa-libGLU-devel-9.0.0-4.el7.x86_64 16/22 Updating : mesa-libEGL-18.3.4-5.el7.x86_64 17/22 Cleanup : mesa-libEGL-18.0.5-3.el7.x86_64 18/22 Cleanup : mesa-libgbm-18.0.5-3.el7.x86_64 19/22 Cleanup : mesa-libGL-18.0.5-3.el7.x86_64 20/22 Cleanup : libdrm-2.4.91-3.el7.x86_64 21/22 Cleanup : mesa-libglapi-18.0.5-3.el7.x86_64 22/22 Verifying : 1:libglvnd-devel-1.0.1-0.8.git5baa1e5.el7.x86_64 1/22 Verifying : mesa-libGL-devel-18.3.4-5.el7.x86_64 2/22 Verifying : 1:libglvnd-core-devel-1.0.1-0.8.git5baa1e5.el7.x86_64 3/22 Verifying : mesa-libgbm-18.3.4-5.el7.x86_64 4/22 Verifying : libXdamage-devel-1.1.4-4.1.el7.x86_64 5/22 Verifying : mesa-libGLU-devel-9.0.0-4.el7.x86_64 6/22 Verifying : mesa-libglapi-18.3.4-5.el7.x86_64 7/22 Verifying : mesa-libGL-18.3.4-5.el7.x86_64 8/22 Verifying : libdrm-devel-2.4.97-2.el7.x86_64 9/22 Verifying : gl-manpages-1.1-7.20130122.el7.noarch 10/22 Verifying : libdrm-2.4.97-2.el7.x86_64 11/22 Verifying : libXxf86vm-devel-1.1.4-1.el7.x86_64 12/22 Verifying : mesa-khr-devel-18.3.4-5.el7.x86_64 13/22 Verifying : libXext-devel-1.3.3-3.el7.x86_64 14/22 Verifying : mesa-libGLU-9.0.0-4.el7.x86_64 15/22 Verifying : libXfixes-devel-5.0.3-1.el7.x86_64 16/22 Verifying : mesa-libEGL-18.3.4-5.el7.x86_64 17/22 Verifying : mesa-libgbm-18.0.5-3.el7.x86_64 18/22 Verifying : libdrm-2.4.91-3.el7.x86_64 19/22 Verifying : mesa-libglapi-18.0.5-3.el7.x86_64 20/22 Verifying : mesa-libEGL-18.0.5-3.el7.x86_64 21/22 Verifying : mesa-libGL-18.0.5-3.el7.x86_64 22/22 Installed: mesa-libGLU-devel.x86_64 0:9.0.0-4.el7 Dependency Installed: gl-manpages.noarch 0:1.1-7.20130122.el7 libXdamage-devel.x86_64 0:1.1.4-4.1.el7 libXext-devel.x86_64 0:1.3.3-3.el7 libXfixes-devel.x86_64 0:5.0.3-1.el7 libXxf86vm-devel.x86_64 0:1.1.4-1.el7 libdrm-devel.x86_64 0:2.4.97-2.el7 libglvnd-core-devel.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libglvnd-devel.x86_64 1:1.0.1-0.8.git5baa1e5.el7 mesa-khr-devel.x86_64 0:18.3.4-5.el7 mesa-libGL-devel.x86_64 0:18.3.4-5.el7 mesa-libGLU.x86_64 0:9.0.0-4.el7 Dependency Updated: libdrm.x86_64 0:2.4.97-2.el7 mesa-libEGL.x86_64 0:18.3.4-5.el7 mesa-libGL.x86_64 0:18.3.4-5.el7 mesa-libgbm.x86_64 0:18.3.4-5.el7 mesa-libglapi.x86_64 0:18.3.4-5.el7 Complete! |
그다음 https://centos.pkgs.org/7/centos-x86_64/freeglut-devel-3.0.0-8.el7.x86_64.rpm.html 에서
freeglut-devel-3.0.0-8.el7.x86_64.rpm 다운로드 후 설치
해당 패키지는 https://centos.pkgs.org/7/centos-x86_64/freeglut-3.0.0-8.el7.x86_64.rpm.html 에서
freeglut-3.0.0-8.el7.x86_64.rpm 패키지를 먼저 설치한 후 설치하면 될듯하지만
난 yum 으로 설치함
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # yum install freeglut-devel-3.0.0-8.el7.x86_64.rpm Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### Examining freeglut-devel-3.0.0-8.el7.x86_64.rpm: freeglut-devel-3.0.0-8.el7.x86_64 Marking freeglut-devel-3.0.0-8.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package freeglut-devel.x86_64 0:3.0.0-8.el7 will be installed --> Processing Dependency: freeglut = 3.0.0-8.el7 for package: freeglut-devel-3.0.0-8.el7.x86_64 --> Processing Dependency: libglut.so.3()(64bit) for package: freeglut-devel-3.0.0-8.el7.x86_64 --> Running transaction check ---> Package freeglut.x86_64 0:3.0.0-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: freeglut-devel x86_64 3.0.0-8.el7 /freeglut-devel-3.0.0-8.el7.x86_64 112 k Installing for dependencies: freeglut x86_64 3.0.0-8.el7 ol7_latest 185 k Transaction Summary ============================================================================================================================= Install 1 Package (+1 Dependent package) Total size: 297 k Total download size: 185 k Installed size: 749 k Is this ok [y/d/N]: y Downloading packages: freeglut-3.0.0-8.el7.x86_64.rpm | 185 kB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : freeglut-3.0.0-8.el7.x86_64 1/2 Installing : freeglut-devel-3.0.0-8.el7.x86_64 2/2 Verifying : freeglut-3.0.0-8.el7.x86_64 1/2 Verifying : freeglut-devel-3.0.0-8.el7.x86_64 2/2 Installed: freeglut-devel.x86_64 0:3.0.0-8.el7 Dependency Installed: freeglut.x86_64 0:3.0.0-8.el7 Complete! |
그리고 https://centos.pkgs.org/7/centos-x86_64/libXi-devel-1.7.9-1.el7.x86_64.rpm.html 에서
libXi-devel-1.7.9-1.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 5 | # rpm -ivh libXi-devel-1.7.9-1.el7.x86_64.rpm warning: libXi-devel-1.7.9-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libXi-devel-1.7.9-1.el7 ################################# [100%] |
그리고 https://centos.pkgs.org/7/centos-x86_64/libXmu-devel-1.1.2-2.el7.x86_64.rpm.html 에서
libXmu-devel-1.1.2-2.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 | # rpm -ivh libXmu-devel-1.1.2-2.el7.x86_64.rpm warning: libXmu-devel-1.1.2-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: pkgconfig(xt) is needed by libXmu-devel-1.1.2-2.el7.x86_64 |
https://centos.pkgs.org/7/centos-x86_64/libXt-devel-1.1.5-3.el7.x86_64.rpm.html 에서
libXt-devel-1.1.5-3.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 5 | # rpm -ivh libXt-devel-1.1.5-3.el7.x86_64.rpm warning: libXt-devel-1.1.5-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: pkgconfig(ice) is needed by libXt-devel-1.1.5-3.el7.x86_64 pkgconfig(sm) is needed by libXt-devel-1.1.5-3.el7.x86_64 |
또 의존성 문제 발생 ice, sm 먼저 설치해야함
https://centos.pkgs.org/7/centos-x86_64/libICE-devel-1.0.9-9.el7.x86_64.rpm.html 에서
libICE-devel-1.0.9-9.el7.x86_64.rpm 다운로드 후 설치
https://centos.pkgs.org/7/centos-x86_64/libSM-devel-1.2.2-2.el7.x86_64.rpm.html 에서
libSM-devel-1.2.2-2.el7.x86_64.rpm 다운로드 후 설치
1 2 3 4 5 6 7 8 9 10 | # rpm -ivh libICE-devel-1.0.9-9.el7.x86_64.rpm warning: libICE-devel-1.0.9-9.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libICE-devel-1.0.9-9.el7 ################################# [100%] # rpm -ivh libSM-devel-1.2.2-2.el7.x86_64.rpm warning: libSM-devel-1.2.2-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libSM-devel-1.2.2-2.el7 ################################# [100%] |
다시 libXt 설치
1 2 3 4 5 | # rpm -ivh libXt-devel-1.1.5-3.el7.x86_64.rpm warning: libXt-devel-1.1.5-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libXt-devel-1.1.5-3.el7 ################################# [100%] |
다시 libXmu 설치
1 2 3 4 5 | # rpm -ivh libXmu-devel-1.1.2-2.el7.x86_64.rpm warning: libXmu-devel-1.1.2-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:libXmu-devel-1.1.2-2.el7 ################################# [100%] |
패키지 다 설치 했으니
repository를 local repo에서 cuda repo로 변경후 아래 yum 사용
1 2 3 4 5 | # cd /etc/yum.repos.d/ # ls cuda-10-1-local-10.1.243-418.87.00.repo local.repobak # mv cuda-10-1-local-10.1.243-418.87.00.repobak cuda-10-1-local-10.1.243-418.87.00.repo # mv local.repo local.repobak |
다시 cuda 설치
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | # yum install cuda -y Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### cuda-10-1-local-10.1.243-418.87.00 | 2.5 kB 00:00:00 cuda-10-1-local-10.1.243-418.87.00/primary_db | 51 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package cuda.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-10-1 >= 10.1.243 for package: cuda-10.1.243-1.x86_64 --> Running transaction check ---> Package cuda-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-toolkit-10-1 >= 10.1.243 for package: cuda-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-runtime-10-1 >= 10.1.243 for package: cuda-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-demo-suite-10-1 >= 10.1.243 for package: cuda-10-1-10.1.243-1.x86_64 --> Running transaction check ---> Package cuda-demo-suite-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-runtime-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-license-10-1 >= 10.1.243 for package: cuda-runtime-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-libraries-10-1 >= 10.1.243 for package: cuda-runtime-10-1-10.1.243-1.x86_64 ---> Package cuda-toolkit-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-tools-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-samples-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvml-dev-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-libraries-dev-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-documentation-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-compiler-10-1 >= 10.1.243 for package: cuda-toolkit-10-1-10.1.243-1.x86_64 --> Running transaction check ---> Package cuda-compiler-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-nvprune-10-1 >= 10.1.243 for package: cuda-compiler-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvcc-10-1 >= 10.1.243 for package: cuda-compiler-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cuobjdump-10-1 >= 10.1.243 for package: cuda-compiler-10-1-10.1.243-1.x86_64 ---> Package cuda-documentation-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-libraries-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: libcublas10 >= 10.2.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvrtc-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvjpeg-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvgraph-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-npp-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cusparse-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cusolver-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-curand-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cufft-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cudart-10-1 >= 10.1.243 for package: cuda-libraries-10-1-10.1.243-1.x86_64 ---> Package cuda-libraries-dev-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: libcublas-devel >= 10.2.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvrtc-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvjpeg-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvgraph-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-npp-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-misc-headers-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-driver-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cusparse-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cusolver-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-curand-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cufft-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cudart-dev-10-1 >= 10.1.243 for package: cuda-libraries-dev-10-1-10.1.243-1.x86_64 ---> Package cuda-license-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvml-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-samples-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-tools-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-visual-tools-10-1 >= 10.1.243 for package: cuda-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-command-line-tools-10-1 >= 10.1.243 for package: cuda-tools-10-1-10.1.243-1.x86_64 --> Running transaction check ---> Package cuda-command-line-tools-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-sanitizer-api-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvtx-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvprof-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nvdisasm-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-memcheck-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-gpu-library-advisor-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-gdb-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-cupti-10-1 >= 10.1.243 for package: cuda-command-line-tools-10-1-10.1.243-1.x86_64 ---> Package cuda-cudart-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cudart-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cufft-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cufft-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cuobjdump-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-curand-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-curand-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cusolver-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cusolver-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cusparse-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-cusparse-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-driver-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-misc-headers-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-npp-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-npp-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvcc-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvgraph-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvgraph-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvjpeg-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvjpeg-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvprune-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvrtc-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvrtc-dev-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-visual-tools-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: cuda-nvvp-10-1 >= 10.1.243 for package: cuda-visual-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nsight-systems-10-1 >= 10.1.243 for package: cuda-visual-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nsight-compute-10-1 >= 10.1.243 for package: cuda-visual-tools-10-1-10.1.243-1.x86_64 --> Processing Dependency: cuda-nsight-10-1 >= 10.1.243 for package: cuda-visual-tools-10-1-10.1.243-1.x86_64 ---> Package libcublas-devel.x86_64 0:10.2.1.243-1 will be installed ---> Package libcublas10.x86_64 0:10.2.1.243-1 will be installed --> Running transaction check ---> Package cuda-cupti-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-gdb-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-gpu-library-advisor-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-memcheck-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nsight-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nsight-compute-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: nsight-compute for package: cuda-nsight-compute-10-1-10.1.243-1.x86_64 ---> Package cuda-nsight-systems-10-1.x86_64 0:10.1.243-1 will be installed --> Processing Dependency: nsight-systems for package: cuda-nsight-systems-10-1-10.1.243-1.x86_64 ---> Package cuda-nvdisasm-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvprof-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvtx-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-nvvp-10-1.x86_64 0:10.1.243-1 will be installed ---> Package cuda-sanitizer-api-10-1.x86_64 0:10.1.243-1 will be installed --> Running transaction check ---> Package nsight-compute-2019.4.0.x86_64 0:2019.4.0.12-1 will be installed ---> Package nsight-systems-2019.3.7.x86_64 0:2019.3.7.5_3837e03-0 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: cuda x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.1 k Installing for dependencies: cuda-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.1 k cuda-command-line-tools-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.3 k cuda-compiler-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.1 k cuda-cudart-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 148 k cuda-cudart-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 797 k cuda-cufft-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 101 M cuda-cufft-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 192 M cuda-cuobjdump-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 97 k cuda-cupti-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 15 M cuda-curand-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 42 M cuda-curand-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 65 M cuda-cusolver-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 109 M cuda-cusolver-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 27 M cuda-cusparse-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 74 M cuda-cusparse-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 149 M cuda-demo-suite-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 4.7 M cuda-documentation-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 131 M cuda-driver-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 20 k cuda-gdb-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 3.5 M cuda-gpu-library-advisor-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 1.0 M cuda-libraries-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.3 k cuda-libraries-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.5 k cuda-license-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 22 k cuda-memcheck-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 180 k cuda-misc-headers-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 1.2 M cuda-npp-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 82 M cuda-npp-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 82 M cuda-nsight-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 270 M cuda-nsight-compute-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 7.8 k cuda-nsight-systems-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 7.3 k cuda-nvcc-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 23 M cuda-nvdisasm-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 21 M cuda-nvgraph-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 91 M cuda-nvgraph-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 55 M cuda-nvjpeg-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 1.7 M cuda-nvjpeg-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 1.7 M cuda-nvml-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 70 k cuda-nvprof-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 9.0 M cuda-nvprune-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 46 k cuda-nvrtc-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 8.8 M cuda-nvrtc-dev-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 14 k cuda-nvtx-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 68 k cuda-nvvp-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 116 M cuda-runtime-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.1 k cuda-samples-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 86 M cuda-sanitizer-api-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 3.5 M cuda-toolkit-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.7 k cuda-tools-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.0 k cuda-visual-tools-10-1 x86_64 10.1.243-1 cuda-10-1-local-10.1.243-418.87.00 6.8 k libcublas-devel x86_64 10.2.1.243-1 cuda-10-1-local-10.1.243-418.87.00 55 M libcublas10 x86_64 10.2.1.243-1 cuda-10-1-local-10.1.243-418.87.00 53 M nsight-compute-2019.4.0 x86_64 2019.4.0.12-1 cuda-10-1-local-10.1.243-418.87.00 257 M nsight-systems-2019.3.7 x86_64 2019.3.7.5_3837e03-0 cuda-10-1-local-10.1.243-418.87.00 104 M Transaction Summary ============================================================================================================================= Install 1 Package (+53 Dependent packages) Total download size: 2.2 G Installed size: 4.1 G Downloading packages: ----------------------------------------------------------------------------------------------------------------------------- Total 328 MB/s | 2.2 GB 00:00:06 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : cuda-license-10-1-10.1.243-1.x86_64 1/54 *** LICENSE AGREEMENT *** By using this software you agree to fully comply with the terms and conditions of the EULA (End User License Agreement). The EULA is located at /usr/local/cuda-10.1/doc/EULA.txt. The EULA can also be found at http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the terms and conditions of the EULA, do not use the software. Installing : cuda-driver-dev-10-1-10.1.243-1.x86_64 2/54 Installing : cuda-nvdisasm-10-1-10.1.243-1.x86_64 3/54 Installing : cuda-cufft-10-1-10.1.243-1.x86_64 4/54 Installing : cuda-cufft-dev-10-1-10.1.243-1.x86_64 5/54 Installing : cuda-cusolver-10-1-10.1.243-1.x86_64 6/54 Installing : cuda-cusolver-dev-10-1-10.1.243-1.x86_64 7/54 Installing : cuda-cuobjdump-10-1-10.1.243-1.x86_64 8/54 Installing : cuda-cusparse-10-1-10.1.243-1.x86_64 9/54 Installing : cuda-cusparse-dev-10-1-10.1.243-1.x86_64 10/54 Installing : cuda-nvprof-10-1-10.1.243-1.x86_64 11/54 Installing : cuda-curand-10-1-10.1.243-1.x86_64 12/54 Installing : cuda-curand-dev-10-1-10.1.243-1.x86_64 13/54 Installing : libcublas10-10.2.1.243-1.x86_64 14/54 Installing : libcublas-devel-10.2.1.243-1.x86_64 15/54 Installing : cuda-npp-10-1-10.1.243-1.x86_64 16/54 Installing : cuda-npp-dev-10-1-10.1.243-1.x86_64 17/54 Installing : cuda-misc-headers-10-1-10.1.243-1.x86_64 18/54 Installing : cuda-nvcc-10-1-10.1.243-1.x86_64 19/54 Installing : cuda-nvrtc-10-1-10.1.243-1.x86_64 20/54 Installing : cuda-nvrtc-dev-10-1-10.1.243-1.x86_64 21/54 Installing : cuda-nvjpeg-10-1-10.1.243-1.x86_64 22/54 Installing : cuda-nvjpeg-dev-10-1-10.1.243-1.x86_64 23/54 Installing : cuda-cudart-10-1-10.1.243-1.x86_64 24/54 Installing : cuda-cudart-dev-10-1-10.1.243-1.x86_64 25/54 Installing : cuda-nvgraph-10-1-10.1.243-1.x86_64 26/54 Installing : cuda-nvgraph-dev-10-1-10.1.243-1.x86_64 27/54 Installing : cuda-samples-10-1-10.1.243-1.x86_64 28/54 Installing : cuda-nvml-dev-10-1-10.1.243-1.x86_64 29/54 Installing : cuda-documentation-10-1-10.1.243-1.x86_64 30/54 Installing : cuda-libraries-dev-10-1-10.1.243-1.x86_64 31/54 Installing : cuda-libraries-10-1-10.1.243-1.x86_64 32/54 Installing : cuda-runtime-10-1-10.1.243-1.x86_64 33/54 Installing : cuda-demo-suite-10-1-10.1.243-1.x86_64 34/54 Installing : cuda-cupti-10-1-10.1.243-1.x86_64 35/54 Installing : cuda-nvvp-10-1-10.1.243-1.x86_64 36/54 Installing : cuda-gdb-10-1-10.1.243-1.x86_64 37/54 Installing : cuda-nvprune-10-1-10.1.243-1.x86_64 38/54 Installing : cuda-compiler-10-1-10.1.243-1.x86_64 39/54 Installing : cuda-nvtx-10-1-10.1.243-1.x86_64 40/54 Installing : cuda-sanitizer-api-10-1-10.1.243-1.x86_64 41/54 Installing : cuda-gpu-library-advisor-10-1-10.1.243-1.x86_64 42/54 Installing : cuda-nsight-10-1-10.1.243-1.x86_64 43/54 Installing : cuda-memcheck-10-1-10.1.243-1.x86_64 44/54 Installing : cuda-command-line-tools-10-1-10.1.243-1.x86_64 45/54 Installing : nsight-systems-2019.3.7-2019.3.7.5_3837e03-0.x86_64 46/54 Installing : cuda-nsight-systems-10-1-10.1.243-1.x86_64 47/54 Installing : nsight-compute-2019.4.0-2019.4.0.12-1.x86_64 48/54 Installing : cuda-nsight-compute-10-1-10.1.243-1.x86_64 49/54 Installing : cuda-visual-tools-10-1-10.1.243-1.x86_64 50/54 Installing : cuda-tools-10-1-10.1.243-1.x86_64 51/54 Installing : cuda-toolkit-10-1-10.1.243-1.x86_64 52/54 Installing : cuda-10-1-10.1.243-1.x86_64 53/54 Installing : cuda-10.1.243-1.x86_64 54/54 Verifying : cuda-nvgraph-dev-10-1-10.1.243-1.x86_64 1/54 Verifying : cuda-cufft-10-1-10.1.243-1.x86_64 2/54 Verifying : cuda-nvprune-10-1-10.1.243-1.x86_64 3/54 Verifying : cuda-10.1.243-1.x86_64 4/54 Verifying : libcublas-devel-10.2.1.243-1.x86_64 5/54 Verifying : cuda-cusolver-10-1-10.1.243-1.x86_64 6/54 Verifying : cuda-10-1-10.1.243-1.x86_64 7/54 Verifying : cuda-nvtx-10-1-10.1.243-1.x86_64 8/54 Verifying : cuda-sanitizer-api-10-1-10.1.243-1.x86_64 9/54 Verifying : cuda-nsight-compute-10-1-10.1.243-1.x86_64 10/54 Verifying : cuda-cusolver-dev-10-1-10.1.243-1.x86_64 11/54 Verifying : cuda-cuobjdump-10-1-10.1.243-1.x86_64 12/54 Verifying : cuda-cusparse-10-1-10.1.243-1.x86_64 13/54 Verifying : cuda-visual-tools-10-1-10.1.243-1.x86_64 14/54 Verifying : cuda-tools-10-1-10.1.243-1.x86_64 15/54 Verifying : cuda-nvprof-10-1-10.1.243-1.x86_64 16/54 Verifying : cuda-nvjpeg-dev-10-1-10.1.243-1.x86_64 17/54 Verifying : cuda-curand-10-1-10.1.243-1.x86_64 18/54 Verifying : libcublas10-10.2.1.243-1.x86_64 19/54 Verifying : cuda-compiler-10-1-10.1.243-1.x86_64 20/54 Verifying : cuda-nsight-systems-10-1-10.1.243-1.x86_64 21/54 Verifying : cuda-libraries-dev-10-1-10.1.243-1.x86_64 22/54 Verifying : cuda-gpu-library-advisor-10-1-10.1.243-1.x86_64 23/54 Verifying : cuda-curand-dev-10-1-10.1.243-1.x86_64 24/54 Verifying : cuda-npp-10-1-10.1.243-1.x86_64 25/54 Verifying : cuda-nvcc-10-1-10.1.243-1.x86_64 26/54 Verifying : cuda-npp-dev-10-1-10.1.243-1.x86_64 27/54 Verifying : cuda-samples-10-1-10.1.243-1.x86_64 28/54 Verifying : cuda-toolkit-10-1-10.1.243-1.x86_64 29/54 Verifying : cuda-cusparse-dev-10-1-10.1.243-1.x86_64 30/54 Verifying : cuda-misc-headers-10-1-10.1.243-1.x86_64 31/54 Verifying : cuda-demo-suite-10-1-10.1.243-1.x86_64 32/54 Verifying : cuda-runtime-10-1-10.1.243-1.x86_64 33/54 Verifying : cuda-nsight-10-1-10.1.243-1.x86_64 34/54 Verifying : cuda-nvrtc-dev-10-1-10.1.243-1.x86_64 35/54 Verifying : cuda-nvdisasm-10-1-10.1.243-1.x86_64 36/54 Verifying : cuda-nvrtc-10-1-10.1.243-1.x86_64 37/54 Verifying : nsight-systems-2019.3.7-2019.3.7.5_3837e03-0.x86_64 38/54 Verifying : cuda-nvjpeg-10-1-10.1.243-1.x86_64 39/54 Verifying : nsight-compute-2019.4.0-2019.4.0.12-1.x86_64 40/54 Verifying : cuda-cudart-10-1-10.1.243-1.x86_64 41/54 Verifying : cuda-cupti-10-1-10.1.243-1.x86_64 42/54 Verifying : cuda-cufft-dev-10-1-10.1.243-1.x86_64 43/54 Verifying : cuda-license-10-1-10.1.243-1.x86_64 44/54 Verifying : cuda-nvvp-10-1-10.1.243-1.x86_64 45/54 Verifying : cuda-nvgraph-10-1-10.1.243-1.x86_64 46/54 Verifying : cuda-libraries-10-1-10.1.243-1.x86_64 47/54 Verifying : cuda-gdb-10-1-10.1.243-1.x86_64 48/54 Verifying : cuda-driver-dev-10-1-10.1.243-1.x86_64 49/54 Verifying : cuda-nvml-dev-10-1-10.1.243-1.x86_64 50/54 Verifying : cuda-memcheck-10-1-10.1.243-1.x86_64 51/54 Verifying : cuda-command-line-tools-10-1-10.1.243-1.x86_64 52/54 Verifying : cuda-documentation-10-1-10.1.243-1.x86_64 53/54 Verifying : cuda-cudart-dev-10-1-10.1.243-1.x86_64 54/54 Installed: cuda.x86_64 0:10.1.243-1 Dependency Installed: cuda-10-1.x86_64 0:10.1.243-1 cuda-command-line-tools-10-1.x86_64 0:10.1.243-1 cuda-compiler-10-1.x86_64 0:10.1.243-1 cuda-cudart-10-1.x86_64 0:10.1.243-1 cuda-cudart-dev-10-1.x86_64 0:10.1.243-1 cuda-cufft-10-1.x86_64 0:10.1.243-1 cuda-cufft-dev-10-1.x86_64 0:10.1.243-1 cuda-cuobjdump-10-1.x86_64 0:10.1.243-1 cuda-cupti-10-1.x86_64 0:10.1.243-1 cuda-curand-10-1.x86_64 0:10.1.243-1 cuda-curand-dev-10-1.x86_64 0:10.1.243-1 cuda-cusolver-10-1.x86_64 0:10.1.243-1 cuda-cusolver-dev-10-1.x86_64 0:10.1.243-1 cuda-cusparse-10-1.x86_64 0:10.1.243-1 cuda-cusparse-dev-10-1.x86_64 0:10.1.243-1 cuda-demo-suite-10-1.x86_64 0:10.1.243-1 cuda-documentation-10-1.x86_64 0:10.1.243-1 cuda-driver-dev-10-1.x86_64 0:10.1.243-1 cuda-gdb-10-1.x86_64 0:10.1.243-1 cuda-gpu-library-advisor-10-1.x86_64 0:10.1.243-1 cuda-libraries-10-1.x86_64 0:10.1.243-1 cuda-libraries-dev-10-1.x86_64 0:10.1.243-1 cuda-license-10-1.x86_64 0:10.1.243-1 cuda-memcheck-10-1.x86_64 0:10.1.243-1 cuda-misc-headers-10-1.x86_64 0:10.1.243-1 cuda-npp-10-1.x86_64 0:10.1.243-1 cuda-npp-dev-10-1.x86_64 0:10.1.243-1 cuda-nsight-10-1.x86_64 0:10.1.243-1 cuda-nsight-compute-10-1.x86_64 0:10.1.243-1 cuda-nsight-systems-10-1.x86_64 0:10.1.243-1 cuda-nvcc-10-1.x86_64 0:10.1.243-1 cuda-nvdisasm-10-1.x86_64 0:10.1.243-1 cuda-nvgraph-10-1.x86_64 0:10.1.243-1 cuda-nvgraph-dev-10-1.x86_64 0:10.1.243-1 cuda-nvjpeg-10-1.x86_64 0:10.1.243-1 cuda-nvjpeg-dev-10-1.x86_64 0:10.1.243-1 cuda-nvml-dev-10-1.x86_64 0:10.1.243-1 cuda-nvprof-10-1.x86_64 0:10.1.243-1 cuda-nvprune-10-1.x86_64 0:10.1.243-1 cuda-nvrtc-10-1.x86_64 0:10.1.243-1 cuda-nvrtc-dev-10-1.x86_64 0:10.1.243-1 cuda-nvtx-10-1.x86_64 0:10.1.243-1 cuda-nvvp-10-1.x86_64 0:10.1.243-1 cuda-runtime-10-1.x86_64 0:10.1.243-1 cuda-samples-10-1.x86_64 0:10.1.243-1 cuda-sanitizer-api-10-1.x86_64 0:10.1.243-1 cuda-toolkit-10-1.x86_64 0:10.1.243-1 cuda-tools-10-1.x86_64 0:10.1.243-1 cuda-visual-tools-10-1.x86_64 0:10.1.243-1 libcublas-devel.x86_64 0:10.2.1.243-1 libcublas10.x86_64 0:10.2.1.243-1 nsight-compute-2019.4.0.x86_64 0:2019.4.0.12-1 nsight-systems-2019.3.7.x86_64 0:2019.3.7.5_3837e03-0 Complete! |
정상적으로 설치됨
CUDA rpm 설치 후 .bash_profile 에 PATH와 LD_LIBRARY_PATH에 아래내용 추가
1 2 3 | # vi .bash_profile export PATH=/usr/local/cuda-10.1/bin export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64 |
적용
1 | # . ./.bash_profile |
CUDA(nvcc) 설치 확인
1 2 | # which nvcc /usr/local/cuda/bin/nvcc |
CUDA(nvcc) 버전 확인
1 2 3 4 5 | # nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2018 NVIDIA Corporation Built on Sat_aug_25_12:35:01_CST_2018 Cuda compilation tools, release 10.0, V10.0.130 |
서버 리부팅
1 2 3 | # reboot Connection closed by foreign host. |
CUDA 설치 후 GPU를 인식하는지 확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # nvidia-smi Tue Nov 19 12:30:40 2019 +-------------------------------------------------------------------------+ | NVIDIA-SMI 410.48 Driver Version: 410.48 | |----------------------+-------------------------+------------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |=========================================================================| | 0 Tesla V100-SXM2... On | 00000000:8A:00.0 Off | 0 | | N/A 46C P0 43W / 300W | 0Mib / 16130MiB | 0% Deafult | +----------------------+-------------------------+------------------------+ +-------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=========================================================================| | No running processes found | +-------------------------------------------------------------------------+ |
gpu가 없다면 아래와 같이 나옴
1 2 | # nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. |
리부팅을 하지 않는다면 아래와 같이 나옴
1 2 | # nvidia-smi Failed to initialize NVML: Driver/library version mismatch |
PG-Strom 설치
1 2 3 4 5 | # rpm -ivh pg_strom-PG10-2.2-2.el7.x86_64.rpm warning: pg_strom-PG10-2.2-2.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 4eb31320: NOKEY Preparing... ################################# [100%] Updating / installing... 1:pg_strom-PG10-2.2-2.el7 ################################# [100%] |
pg strom 압축파일 해제
1 | # tar -xvf pg_strom-2.2-2.tar.gz |
pg strom make 와 make install
1 2 3 | # cd pg_strom-2.2-2 # make PG_CONFIG=/usr/pgsql-10/bin/pg_config # make install PG_CONFIG=/usr/pgsql-10/bin/pg_config |
postgresql.conf 설정
shared_preload_libraries 값 변경
1 2 3 | # su - postgres $ vi $PGHOME/poastgres.conf shared_preload_libraries = '/usr/pgsql-10/lib/pg_strom' |
postgresql 이 설치된 경로/lib/pg_strom으로 설정해줘야함
max_worker_processes 값 변경
1 2 3 | $ vi $PGHOME/poastgres.conf 기존 : max_worker_processes = 8 변경 : max_worker_processes = 100 |
shared_buffers 값 변경
1 2 3 | $ vi $PGHOME/poastgres.conf 기존 : shared_buffers = 128MB 변경 : shared_buffers = 10GB |
work_mem 값 변경
1 2 3 | $ vi $PGHOME/poastgres.conf 기존 : work_mem = 4MB 변경 : work_mem = 1GB |
Postgresql 재기동
1 2 3 4 5 6 | # su - postgres $ pg_ctl -D $PGDATA -l logfile restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started |
extension 생성
1 2 3 4 | # su - postgres $ psql psql> create extension pg_strom; CREATE EXTENSION |
PG-Strom 설치완료
GPU에서 PG-Strom을 인식하는지 확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # nvidia-smi Tue Nov 19 16:47:22 2019 +-------------------------------------------------------------------------+ | NVIDIA-SMI 410.48 Driver Version: 410.48 | |----------------------+-------------------------+------------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |=========================================================================| | 0 Tesla V100-SXM2... On | 00000000:8A:00.0 Off | 0 | | N/A 46C P0 58W / 300W | 315Mib / 16130MiB | 0% Deafult | +----------------------+-------------------------+------------------------+ +-------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=========================================================================| | 0 47343 C ..bgworker: PG-Strom GPU memory keeper 305MiB | | +-------------------------------------------------------------------------+ |
정상적으로 인식하는 모습을 볼 수 있음
NVME-Strom 설치
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # rpm -ivh nvme_strom-2.1-1.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:nvme_strom-2.1-1.el7 ################################# [100%] Error! There are no instances of module: nvme_strom 2.1 located in the DKMS tree. Creating symlink /var/lib/dkms/nvme_strom/2.1/source -> /usr/src/nvme_strom-2.1 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j1 KERNELRELEASE=4.14.35-1818.3.3.el7uek.x86_64 -C . KERNEL_VER=4.14.35-1818.3.3.el7uek.x86_64 BUILD_BY_DKMS=1 modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.14.35-1818.3.3.el7uek.x86_64 (x86_64) Consult /var/lib/dkms/nvme_strom/2.1/build/make.log for more information. notice: nvme_strom -v 2.1 might be manually installed. Error! There are no instances of module: rdmax 2.1 located in the DKMS tree. Creating symlink /var/lib/dkms/rdmax/2.1/source -> /usr/src/rdmax-2.1 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j1 KERNELRELEASE=4.14.35-1818.3.3.el7uek.x86_64 -C . KERNEL_VER=4.14.35-1818.3.3.el7uek.x86_64 NVME_STROM_VERSION=2.1 modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.14.35-1818.3.3.el7uek.x86_64 (x86_64) Consult /var/lib/dkms/rdmax/2.1/build/make.log for more information. notice: rdmax -v 2.1 might be manually installed. |
설치는 되었지만 rdmax를 수동 설치한것 같다는 메세지가 나옴(무시)
이어지는 글 : linux7.6에 PostgreSQL 10 + PG-Strom 2.2 GPU 사용 테스트
참조 : http://heterodb.github.io/pg-strom/install/
https://kldp.org/node/81901'PostgreSQL > Install' 카테고리의 다른 글
Oracle Linux 8.4에 PostgreSQL 16 설치 가이드 (2) | 2024.03.22 |
---|---|
Oracle Linux 7.6에 PostgreSQL 16 설치 가이드(실패) (0) | 2024.03.22 |
PostgreSQL 10 환경에서 collate ko_kr.utf-8 로 database 생성하기 (0) | 2019.11.05 |
PostgreSQL 10, oracle fdw extension 생성방법 (0) | 2019.10.28 |
linux7.6에 PostgreSQL 10 + PostGIS 2.5.3 구성하기(성공) (4) | 2019.10.28 |