From f492ceb7e9254f3637da48ec7d573e475f4930d1 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Mon, 15 Aug 2016 08:50:49 -0400 Subject: [PATCH] use cudaruntime-8-0 as default --- .../xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist | 8 ++++---- .../rh/cudaruntime.rhels7.ppc64le.otherpkgs.pkglist | 8 ++++---- xCAT/postscripts/config_cuda | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist b/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist index a48175537..d5fcc574a 100644 --- a/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist +++ b/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist @@ -6,8 +6,8 @@ gcc pciutils dkms #To install cuda-runtime, need to specify the version -#if want to install cuda-runtime-8-0, uncomment it, -#then comment out cuda-runtime-7-5 -#cuda-runtime-8-0 -cuda-runtime-7-5 +#if want to install cuda-runtime-7-5, uncomment it, +#then comment out cuda-runtime-8-0 +#cuda-runtime-7-5 +cuda-runtime-8-0 diff --git a/xCAT-server/share/xcat/netboot/rh/cudaruntime.rhels7.ppc64le.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/rh/cudaruntime.rhels7.ppc64le.otherpkgs.pkglist index 12c60f80a..ec78a1dea 100644 --- a/xCAT-server/share/xcat/netboot/rh/cudaruntime.rhels7.ppc64le.otherpkgs.pkglist +++ b/xCAT-server/share/xcat/netboot/rh/cudaruntime.rhels7.ppc64le.otherpkgs.pkglist @@ -5,8 +5,8 @@ gcc pciutils dkms #To install cuda-runtime, need to specify the version -#if want to install cuda-runtime-8-0, uncomment it, -#then comment out cuda-runtime-7-5 -#cuda-runtime-8-0 -cuda-runtime-7-5 +#if want to install cuda-runtime-7-5, uncomment it, +#then comment out cuda-runtime-8-0 +#cuda-runtime-7-5 +cuda-runtime-8-0 diff --git a/xCAT/postscripts/config_cuda b/xCAT/postscripts/config_cuda index db4ee9fb8..87aa910d3 100755 --- a/xCAT/postscripts/config_cuda +++ b/xCAT/postscripts/config_cuda @@ -1,7 +1,8 @@ #!/bin/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/bin:\$PATH" > ${FILENAME} -echo "export LD_LIBRARY_PATH=/usr/local/cuda/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}