From 3c08a4e1600f46355ac9dd364cf92f5c00c6b455 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Wed, 28 Oct 2015 10:39:46 -0400 Subject: [PATCH] Add new postscript to configure cuda related settings Renamed the install pkglist to be ppc64le only support --- ...ull.rhels7.pkglist => cudafull.rhels7.ppc64le.pkglist} | 0 ....rhels7.pkglist => cudaruntime.rhels7.ppc64le.pkglist} | 0 xCAT/postscripts/config_cuda | 8 ++++++++ 3 files changed, 8 insertions(+) rename xCAT-server/share/xcat/install/rh/{cudafull.rhels7.pkglist => cudafull.rhels7.ppc64le.pkglist} (100%) rename xCAT-server/share/xcat/install/rh/{cudaruntime.rhels7.pkglist => cudaruntime.rhels7.ppc64le.pkglist} (100%) create mode 100755 xCAT/postscripts/config_cuda diff --git a/xCAT-server/share/xcat/install/rh/cudafull.rhels7.pkglist b/xCAT-server/share/xcat/install/rh/cudafull.rhels7.ppc64le.pkglist similarity index 100% rename from xCAT-server/share/xcat/install/rh/cudafull.rhels7.pkglist rename to xCAT-server/share/xcat/install/rh/cudafull.rhels7.ppc64le.pkglist diff --git a/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.pkglist b/xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist similarity index 100% rename from xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.pkglist rename to xCAT-server/share/xcat/install/rh/cudaruntime.rhels7.ppc64le.pkglist diff --git a/xCAT/postscripts/config_cuda b/xCAT/postscripts/config_cuda new file mode 100755 index 000000000..42d98b3b9 --- /dev/null +++ b/xCAT/postscripts/config_cuda @@ -0,0 +1,8 @@ +#!/bin/sh + +# set the paths required for cuda7.5 +CUDA_VER="cuda-7.5" +FILENAME="/etc/profile.d/xcat-${CUDA_VER}.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}