mirror of
https://github.com/andre-wojtowicz/blas-benchmarks
synced 2024-11-25 15:55:28 +01:00
updated envs and paths
This commit is contained in:
parent
18608545ec
commit
ba91e4763d
@ -4,7 +4,7 @@ WGET_OPTIONS="--no-check-certificate"
|
|||||||
MRO_VERSION="3.2.4"
|
MRO_VERSION="3.2.4"
|
||||||
CHECKPOINT_DATE="2016-04-01"
|
CHECKPOINT_DATE="2016-04-01"
|
||||||
R_SAMPLE_BENCHMARK="Rscript sample-benchmark.R"
|
R_SAMPLE_BENCHMARK="Rscript sample-benchmark.R"
|
||||||
DIR_BLAP="/opt/blas-libs"
|
DIR_BLAS="/opt/blas-libs"
|
||||||
|
|
||||||
function mro_install {
|
function mro_install {
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ function mro_install {
|
|||||||
sed -i "1i\library(checkpoint); checkpoint('${CHECKPOINT_DATE}', scanForPackages=FALSE, verbose=FALSE)" sample-benchmark.R
|
sed -i "1i\library(checkpoint); checkpoint('${CHECKPOINT_DATE}', scanForPackages=FALSE, verbose=FALSE)" sample-benchmark.R
|
||||||
|
|
||||||
# make directory for BLAS and LAPACK libraries
|
# make directory for BLAS and LAPACK libraries
|
||||||
mkdir -p ${DIR_BLAP}
|
mkdir -p ${DIR_BLAS}
|
||||||
|
|
||||||
# clean archives
|
# clean archives
|
||||||
apt-get clean
|
apt-get clean
|
||||||
@ -61,7 +61,7 @@ function mro_install {
|
|||||||
# - single-threaded (reference) #
|
# - single-threaded (reference) #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_NETLIB="${DIR_BLAP}/netlib"
|
DIR_NETLIB="${DIR_BLAS}/netlib"
|
||||||
|
|
||||||
function netlib_install {
|
function netlib_install {
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ function netlib_check {
|
|||||||
# - single-threaded #
|
# - single-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_ATLAS_ST="${DIR_BLAP}/atlas-st"
|
DIR_ATLAS_ST="${DIR_BLAS}/atlas-st"
|
||||||
|
|
||||||
function atlas_st_install {
|
function atlas_st_install {
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ function atlas_st_remove {
|
|||||||
# - multi-threaded #
|
# - multi-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_OPENBLAS="${DIR_BLAP}/openblas"
|
DIR_OPENBLAS="${DIR_BLAS}/openblas"
|
||||||
|
|
||||||
function openblas_install {
|
function openblas_install {
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ function openblas_remove {
|
|||||||
# - multi-threaded #
|
# - multi-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_ATLAS_MT="${DIR_BLAP}/atlas-mt"
|
DIR_ATLAS_MT="${DIR_BLAS}/atlas-mt"
|
||||||
|
|
||||||
function atlas_mt_install {
|
function atlas_mt_install {
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ function atlas_mt_remove {
|
|||||||
# - multi-threaded #
|
# - multi-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_GOTOBLAS2="${DIR_BLAP}/gotoblas2"
|
DIR_GOTOBLAS2="${DIR_BLAS}/gotoblas2"
|
||||||
|
|
||||||
function gotoblas2_install {
|
function gotoblas2_install {
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ function gotoblas2_remove {
|
|||||||
# - multi-threaded #
|
# - multi-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_MKL="${DIR_BLAP}/mkl"
|
DIR_MKL="${DIR_BLAS}/mkl"
|
||||||
|
|
||||||
function mkl_install {
|
function mkl_install {
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ function mkl_remove {
|
|||||||
# - multi-threaded #
|
# - multi-threaded #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
DIR_BLIS="${DIR_BLAP}/blis"
|
DIR_BLIS="${DIR_BLAS}/blis"
|
||||||
|
|
||||||
function blis_install {
|
function blis_install {
|
||||||
|
|
||||||
@ -431,11 +431,13 @@ function blis_remove {
|
|||||||
# - CUDA #
|
# - CUDA #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
|
DIR_CUBLAS="${DIR_BLAS}/cublas"
|
||||||
|
|
||||||
function cublas_install {
|
function cublas_install {
|
||||||
|
|
||||||
echo "Started installing cuBLAS"
|
echo "Started installing cuBLAS"
|
||||||
|
|
||||||
mkdir /opt/blap-lib/cublas
|
mkdir ${DIR_CUBLAS}
|
||||||
|
|
||||||
modprobe -r nouveau
|
modprobe -r nouveau
|
||||||
|
|
||||||
@ -443,11 +445,12 @@ function cublas_install {
|
|||||||
|
|
||||||
nvidia-modprobe
|
nvidia-modprobe
|
||||||
|
|
||||||
echo "#NVBLAS_LOGFILE nvblas.log
|
echo "
|
||||||
NVBLAS_CPU_BLAS_LIB /opt/blap-lib/mkl/libRblas.so
|
#NVBLAS_LOGFILE nvblas.log
|
||||||
|
NVBLAS_CPU_BLAS_LIB ${DIR_MKL}/libRblas.so
|
||||||
NVBLAS_GPU_LIST ALL0
|
NVBLAS_GPU_LIST ALL0
|
||||||
NVBLAS_TILE_DIM 2048
|
NVBLAS_TILE_DIM 2048
|
||||||
NVBLAS_AUTOPIN_MEM_ENABLED" > /opt/blap-lib/cublas/nvblas.conf
|
NVBLAS_AUTOPIN_MEM_ENABLED" > ${DIR_CUBLAS}/nvblas.conf
|
||||||
|
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
@ -479,7 +482,7 @@ function cublas_check {
|
|||||||
|
|
||||||
echo "Started checking cuBLAS"
|
echo "Started checking cuBLAS"
|
||||||
|
|
||||||
NVBLAS_CONFIG_FILE=/opt/blap-lib/cublas/nvblas.conf LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libnvblas.so.6.0 /usr/lib/x86_64-linux-gnu/libcublas.so.6.0" ${R_SAMPLE_BENCHMARK}
|
NVBLAS_CONFIG_FILE="${DIR_CUBLAS}/nvblas.conf" LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libnvblas.so.6.0 /usr/lib/x86_64-linux-gnu/libcublas.so.6.0" ${R_SAMPLE_BENCHMARK}
|
||||||
|
|
||||||
echo "Finished checking cuBLAS"
|
echo "Finished checking cuBLAS"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user