1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-07-22 17:50:29 +02:00

gotoblas2: moved ld config to check function

This commit is contained in:
Andrzej Wójtowicz 2016-05-01 22:57:06 +02:00
parent fd5e9d734f
commit 6e637d14bc

View File

@ -245,9 +245,6 @@ function gotoblas2_install {
cd .. cd ..
rm -r survivegotoblas2-3.141 rm -r survivegotoblas2-3.141
echo "${DIR_GOTOBLAS2}" > /etc/ld.so.conf.d/gotoblas2.conf
ldconfig
Rscript -e "library(checkpoint); checkpoint('${CHECKPOINT_DATE}', scanForPackages=FALSE, verbose=FALSE); install.packages('RhpcBLASctl')" Rscript -e "library(checkpoint); checkpoint('${CHECKPOINT_DATE}', scanForPackages=FALSE, verbose=FALSE); install.packages('RhpcBLASctl')"
echo "Installed files:" echo "Installed files:"
@ -260,10 +257,14 @@ function gotoblas2_check {
echo "Started checking GotoBLAS2." echo "Started checking GotoBLAS2."
echo "${DIR_GOTOBLAS2}" > /etc/ld.so.conf.d/gotoblas2.conf
ldconfig
sed "2i\library(RhpcBLASctl); blas_set_num_threads(`nproc`)" sample-benchmark.R > sample-benchmark-gotoblas2.R sed "2i\library(RhpcBLASctl); blas_set_num_threads(`nproc`)" sample-benchmark.R > sample-benchmark-gotoblas2.R
LD_PRELOAD="${DIR_GOTOBLAS2}/libgoto2blas.so ${DIR_GOTOBLAS2}/libgoto2lapack.so" GOTO_NUM_THREADS=`nproc` Rscript sample-benchmark-gotoblas2.R LD_PRELOAD="${DIR_GOTOBLAS2}/libgoto2blas.so ${DIR_GOTOBLAS2}/libgoto2lapack.so" GOTO_NUM_THREADS=`nproc` Rscript sample-benchmark-gotoblas2.R
rm /etc/ld.so.conf.d/gotoblas2.conf
ldconfig
rm sample-benchmark-gotoblas2.R rm sample-benchmark-gotoblas2.R
echo "Finished checking GotoBLAS2." echo "Finished checking GotoBLAS2."