Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82976201
ex4.run
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 14, 13:07
Size
800 B
Mime Type
text/x-shellscript
Expires
Mon, Sep 16, 13:07 (2 d)
Engine
blob
Format
Raw Data
Handle
20781553
Attached To
rSCEXAMPLES SCITAS examples on how to run on the clusters
ex4.run
View Options
#!/bin/bash
#SBATCH --ntasks 4
## cpus-per-task > 1 needed for multithreaded applications
#SBATCH --cpus-per-task 1
## maximum memory needed in MB
#SBATCH --mem 4096
## maximum walltime needed
#SBATCH --time 00:05:00
echo
echo STARTING AT `date`
echo
# bash is not my default shell? I have to initialize it!
. /etc/bashrc
module purge
module load intel/14.0.1
module load intelmpi/4.1.3
module list
echo
#LAUNCH_DIR=/scratch/<group>/<username>
LAUNCH_DIR=/home/topf/test
EXECUTABLE="./ex4_c"
#EXECUTABLE="./ex4_cxx"
#EXECUTABLE="./ex4_f90"
echo "--> LAUNCH_DIR = ${LAUNCH_DIR}"
echo "--> EXECUTABLE = ${EXECUTABLE}"
echo
echo "--> ${EXECUTABLE} depends on the following dynamic libraries:"
ldd ${EXECUTABLE}
echo
cd ${LAUNCH_DIR}
srun ${EXECUTABLE}
echo
echo FINISHED at `date`
echo
Event Timeline
Log In to Comment