-
Notifications
You must be signed in to change notification settings - Fork 5
/
PluMA.def
executable file
·26 lines (23 loc) · 1.38 KB
/
PluMA.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Bootstrap: library
From: ubuntu:18.04
%post
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_amd64.deb
rm cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu1804-11-1-local/7fa2af80.pub
apt-get -y update
apt-get -y install apt-get -y install build-essential gcc g++ curl git python3 python3-pip perl \
libperl-dev swig r-base r-cran-rcpp r-cran-rinside python3-pkgconfig cuda install scons
git clone https://github.com/FIUBioRG/PluMA.git && cd PluMA
scons
%environment
export RINSIDE_INCLUDE_DIR=/usr/lib/R/site-library/RInside/include/
export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:/usr/local/lib:/usr/lib/R/site-library/RInside/lib/:/usr/lib/R/lib/:${LD_LIBRARY_PATH}
export R_INCLUDE_DIR=/usr/lib/R/include/
export R_LIB_DIR=/usr/lib/R/lib/
export RINSIDE_LIB_DIR=/usr/lib/R/site-library/RInside/lib/
export RCPP_INCLUDE_DIR=/usr/lib/R/site-library/Rcpp/include/
export PYTHON_INCLUDE_DIR=/usr/include/python3.6m/
export PATH=/usr/local/cuda/bin:${PATH}