#!/bin/bash ################################################### # Usage: submit.sh # Description: run mpi submit clinet implement ################################################### g_package_files="" #----------------------------------------------------------------------------------------------------------------- #fun : before hook submit to cluster #param : N/A #return : 0 -- success; not 0 -- failure #----------------------------------------------------------------------------------------------------------------- function before_submit_hook() { echo "before_submit" } #----------------------------------------------------------------------------------------------------------------- #fun : after hook submit to cluster #param : N/A #return : 0 -- success; not 0 -- failure #----------------------------------------------------------------------------------------------------------------- function after_submit_hook() { echo "after_submit" } #----------------------------------------------------------------------------------------------------------------- #fun : package to cluster #param : N/A #return : 0 -- success; not 0 -- failure #----------------------------------------------------------------------------------------------------------------- function package() { echo "package" temp=${engine_temp_path} cp ${engine_workspace}/submit.sh ${temp} cp ${engine_workspace}/before_hook.sh ${temp} g_submitfiles="submit.sh before_hook.sh" }