2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-15 15:50:22 +00:00

Merge pull request #1678 from cxhong/1356

CUDA8 support on rhel7.2 and rhel7.3
This commit is contained in:
Victor Hu
2016-08-15 15:41:50 -04:00
committed by GitHub
6 changed files with 20 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
#INCLUDE:compute.rhels7.pkglist#
#For Cuda 7.5
#For Cuda
kernel-devel
gcc
pciutils

View File

@@ -1,9 +1,12 @@
#INCLUDE:compute.rhels7.pkglist#
#For Cuda 7.5
#For Cuda
kernel-devel
gcc
pciutils
dkms
cuda-runtime-7-5
#To install cuda-runtime-7-5
#cuda-runtime-7-5
#To install cuda-runtime-8-0
cuda-runtime-8-0

View File

@@ -27,3 +27,6 @@ net-tools
gzip
tar
xz
grub2
grub2-tools
bzip2

View File

@@ -1,5 +1,5 @@
#For Cuda 7.5
#For Cuda
kernel-devel
gcc
pciutils

View File

@@ -1,8 +1,11 @@
#For Cuda 7.5
#For Cuda
kernel-devel
gcc
pciutils
dkms
cuda-runtime-7-5
#To install cuda-runtime-7-5
#cuda-runtime-7-5
#To install cuda-runtime-8-0
cuda-runtime-8-0

View File

@@ -1,8 +1,8 @@
#!/bin/sh
# set the paths required for cuda7.5
CUDA_VER="cuda-7.5"
FILENAME="/etc/profile.d/xcat-${CUDA_VER}.sh"
# set the paths required for cuda
CUDA_PATH=/usr/local/cuda
FILENAME="/etc/profile.d/xcat-cuda.sh"
echo "export PATH=/usr/local/${CUDA_VER}/bin:\$PATH" > ${FILENAME}
echo "export LD_LIBRARY_PATH=/usr/local/${CUDA_VER}/lib64:\$LD_LIBRARY_PATH" >> ${FILENAME}
echo "export PATH=$CUDA_PATH/bin:\$PATH" > ${FILENAME}
echo "export LD_LIBRARY_PATH=$CUDA_PATH/lib64:\$LD_LIBRARY_PATH" >> ${FILENAME}