Commit 792cb758 authored by Milan Jaros's avatar Milan Jaros

fix scripts, data

parent 96097da0
import bpy
prefs = bpy.context.preferences.addons['cycles'].preferences
devices = prefs.get_devices() #update
prefs.compute_device_type = 'CLIENT'
devices = prefs.get_devices() #update
for scene in bpy.data.scenes:
scene.cycles.device = 'GPU'
#!/bin/bash
#echo $@ >> /scratch/temp/raas/raas.log
ml Singularity
PARAMS=$@
export SINGULARITY_BINDPATH="/apps,/scratch,/home,/tmp"
singularity exec debian_blender.img $HOME/blender28_gcc/blender ${PARAMS}
#!/bin/bash
ml Singularity
ml intel/2017c
PARAMS=$@
FRAME=${PBS_ARRAY_INDEX}
ROOT=$HOME/project-cyclesphi
CACHE_DIR=$ROOT/data
LOG_DIR=../log
mkdir -p ${LOG_DIR}
LOG=${LOG_DIR}/${FRAME}.log
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache.kg
export CLIENT_FILE_CYCLES_BUFFER=${CACHE_DIR}/cache.bf
export CLIENT_FILE_CYCLES_BMP=${CACHE_DIR}/cache.bmp
export SINGULARITY_BINDPATH="/apps,/scratch,/home,/tmp"
export OMP_NUM_THREADS=48
singularity exec debian_blender.img $HOME/blender28_gcc/blender --factory-startup --enable-autoexec --background ${PARAMS} --render-frame ${FRAME} --use-extension 1 >> ${LOG}
mpirun $ROOT/install/blender28_client_icc_mpi/bin/blender_client
......@@ -3,19 +3,13 @@
ml devel_environment
ml impi
PARAMS=$@
FRAME=${PBS_ARRAY_INDEX}
ROOT=$HOME/project-cyclesphi
CACHE_DIR=$ROOT/data
LOG_DIR=../log
mkdir -p ${LOG_DIR}
LOG=${LOG_DIR}/${FRAME}.log
CACHE_DIR=../cache
mkdir -p ${CACHE_DIR}
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache_${FRAME}.kg
export CLIENT_FILE_CYCLES_BUFFER=${CACHE_DIR}/cache_${FRAME}.bf
export CLIENT_FILE_CYCLES_BMP=${CACHE_DIR}/cache_${FRAME}.bmp
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache.kg
export CLIENT_FILE_CYCLES_BUFFER=${CACHE_DIR}/cache.bf
export CLIENT_FILE_CYCLES_BMP=${CACHE_DIR}/cache.bmp
export I_MPI_FABRICS=shm:tcp
mpirun $HOME/blender28_client_icc_mpi/bin/blender_client-mic >> ${LOG}
mpirun $ROOT/install/blender28_client_icc_mpi/bin/blender_client-mic
#!/bin/bash
ml Singularity
PARAMS=$@
FRAME=${PBS_ARRAY_INDEX}
LOG_DIR=../log
mkdir -p ${LOG_DIR}
LOG=${LOG_DIR}/${FRAME}.log
export SINGULARITY_BINDPATH="/apps,/scratch,/home,/tmp"
export CLIENT_FILE_ACTION=POST
CACHE_DIR=../cache
mkdir -p ${CACHE_DIR}
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache_${FRAME}.kg
export CLIENT_FILE_CYCLES_BUFFER=${CACHE_DIR}/cache_${FRAME}.bf
singularity exec debian_blender.img $HOME/blender28_gcc/blender --factory-startup --enable-autoexec --background ${PARAMS} --render-frame ${FRAME} --use-extension 1 >> ${LOG}
#!/bin/bash
ml Singularity
PARAMS=$@
FRAME=${PBS_ARRAY_INDEX}
export SINGULARITY_BINDPATH="/apps,/scratch,/home,/tmp"
export CLIENT_FILE_ACTION=PRE
CACHE_DIR=../cache
mkdir -p ${CACHE_DIR}
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache_${FRAME}.kg
LOG_DIR=../log
mkdir -p ${LOG_DIR}
LOG=${LOG_DIR}/${FRAME}.log
singularity exec debian_blender.img $HOME/blender28_gcc/blender --factory-startup --enable-autoexec --background ${PARAMS} --render-frame ${FRAME} --use-extension 1 >> ${LOG}
#!/bin/bash
#ml devel_environment
ml intel/2017c
PARAMS=$@
FRAME=${PBS_ARRAY_INDEX}
LOG_DIR=../log
mkdir -p ${LOG_DIR}
LOG=${LOG_DIR}/${FRAME}.log
CACHE_DIR=../cache
mkdir -p ${CACHE_DIR}
export CLIENT_FILE_KERNEL_GLOBAL=${CACHE_DIR}/cache_${FRAME}.kg
export CLIENT_FILE_CYCLES_BUFFER=${CACHE_DIR}/cache_${FRAME}.bf
export CLIENT_FILE_CYCLES_BMP=${CACHE_DIR}/cache_${FRAME}.bmp
#export I_MPI_FABRICS=shm:tcp
export OMP_NUM_THREADS=48
mpirun $HOME/blender28_client_icc_mpi/bin/blender_client >> ${LOG}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment