-
Notifications
You must be signed in to change notification settings - Fork 13
NCI Raijin Build
Owen Kaluza edited this page Jul 24, 2019
·
9 revisions
module purge
module load gcc/5.2.0 python3/3.6.7 mesa/11.2.2
#Setup a virtualenv
cd ~
pip3 install --user virtualenv
.local/bin/virtualenv -p python3 python3-default
#Activate venv
source python3-default/bin/activate
pip install numpy
LV_OSMESA=1 LV_LIB_DIRS=/apps/mesa/11.2.2/lib/ LV_INC_DIRS=/apps/mesa/11.2.2/include/ pip install lavavu
git clone http://github.com/okaluza/LavaVu
cd LavaVu
export LV_LIB_DIRS=/apps/mesa/11.2.2/lib/
export LV_INC_DIRS=/apps/mesa/11.2.2/include/
make -j8 OSMESA=1
Some tests, this mesa is using llvmpipe so volume rendering is usable
time lavavu/LavaVu test image
time lavavu/LavaVu -z1 voltest image
We can even run a notebook server and access from http://raijin.nci.org.au
export PYTHONPATH=${HOME}/LavaVu:$PYTHONPATH
cd ~/LavaVu
#Activate venv and run IPython
source python3-default/bin/activate
pip install jupyter
jupyter notebook --no-browser --ip 0.0.0.0
Copy port + token and go to http://raijin.nci.org.au:PORT/?token=TOKEN
Tests with old underworld/2.5.0 module and new lavavu
LV_OSMESA=1 LV_LIB_DIRS=/apps/mesa/11.2.2/lib/ LV_INC_DIRS=/apps/mesa/11.2.2/include/ python setup.py install