Presentation is loading. Please wait.

Presentation is loading. Please wait.

Www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. Nazarudin Wijee Mohd Sidek Salleh Grid Computing Lab MIMOS Berhad Blender Job Submission in P-GRADE.

Similar presentations


Presentation on theme: "Www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. Nazarudin Wijee Mohd Sidek Salleh Grid Computing Lab MIMOS Berhad Blender Job Submission in P-GRADE."— Presentation transcript:

1 www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. Nazarudin Wijee Mohd Sidek Salleh Grid Computing Lab MIMOS Berhad Blender Job Submission in P-GRADE Portal

2 Blender and Python Information Blender Version: 2.49b Python Version: 2.5.5 www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved.

3 Blender Workflow www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. #PBS -N Blender #PBS -J 0-10:1 #PBS -r y #PBS -j oe #PBS -m n #PBS -o /dev/null export PYTHONHOME=/opt/Python-2.5.5 export LD_LIBRARY_PATH_OLD=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PYTHONHOME/lib PROJECT_DIR=job_execution_directory EXE=/opt/blender-2.49b-linux-glibc236-py25-x86_64/blender INPUT_FILE=$PROJECT_DIR/input_file.blend OUTPUT_FILE=$PROJECT_DIR/output-# LOG_FILE=$PROJECT_DIR/$PBS_ARRAY_INDEX.log cd $PBS_O_WORKDIR $EXE -b $INPUT_FILE -x 1 -o //output-### -F JPEG -s $PBS_ARRAY_INDEX.0 -e $PBS_ARRAY_INDEX.0 -a 2>&1 | tee $LOG_FILE export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_OLD What will Submit job do? 1.It will submit (qsub) pbs-script to the local resource manager (PBS Pro) 2.Save the submission PBS Job ID in a file and pass it to the Monitor job.

4 For MAYA Rendering www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. #!/bin/sh #PBS -l arch=linux #PBS -N e-Render #PBS -J 0-10:1 #PBS -r y #PBS -j oe #PBS -m n #PBS -o /dev/null TMPDIR="/usr/tmp" if [ ! "$PBS_ARRAY_INDEX"]; then PBS_ARRAY_INDEX=1 fi; umask 000 if test -d "job_execution_directory/renderData" then echo -e "Directroy already exists" else mkdir job_execution_directory/renderData fi mkdir job_execution_directory/renderData/images mkdir job_execution_directory/renderData/logs Render -n 1 -r sw -of jpg -rd job_execution_directory/renderData/images/ -s $PBS_ARRAY_INDEX.0 -e $PBS_ARRAY_INDEX.0 job_execution_directory/input_file.mb 2>&1 | tee job_execution_directory/renderData/logs/$PBS_ARRAY_INDEX.log

5 Blender Workflow www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved.. executor.info echo "PBS_JOBID = $PBS_JOBID" echo "MONITOR_JOB_DIR = `pwd`" echo # begin monitoring FINISH_STATUS="0" until [[ $FINISH_STATUS -eq "1" ]] do WC=`tracejob $PBS_JOBID | grep 'dequeuing from' | wc -l` if [[ $WC -eq 1 ]]; then FINISH_STATUS="1" else FINISH_STATUS="0" fi sleep 120 done What will Monitor job do? 1.It will receive PBS Job ID from Submit job 2.During runtime, it will goes to cluster head node and do PBS Pro tracejob to check it the given PBS Job ID already finished.

6 Blender Workflow www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved.. executor.info zip -r $COLLECT_JOB_DIR/project-directory.zip $PROJECT_DIR echo "Done" > collect.status What will Collect and CleanUp job do? 1.Collect will compress all the output files and in one zip file 2.CleanUp will delete the Job Execution Directory which contain the output files and also delete all the log files.. executor.info echo "Removing project directory..." rm -rf $PROJECT_DIR echo "Removing csm output pot and log files..." $EXEC_DIR/run/cleanup.sh

7 THANK YOU www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved.


Download ppt "Www.mimos.my© 2010 MIMOS Berhad. All Rights Reserved. Nazarudin Wijee Mohd Sidek Salleh Grid Computing Lab MIMOS Berhad Blender Job Submission in P-GRADE."

Similar presentations


Ads by Google