Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83492085
run_import_files.sh
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
Tue, Sep 17, 10:48
Size
1 KB
Mime Type
text/x-shellscript
Expires
Thu, Sep 19, 10:48 (2 d)
Engine
blob
Format
Raw Data
Handle
20847213
Attached To
R11910 Additive Manufacturing Work
run_import_files.sh
View Options
#!/bin/bash
#SBATCH --qos parallel
#SBATCH --nodes 2
#SBATCH --ntasks 4
#SBATCH --cpus-per-task 36
#SBATCH --mem-per-cpu 1G
#SBATCH --time 00:59:00
#SBATCH --error=slurm-%j.stderr
#SBATCH --output=slurm-%j.stdout
#SBATCH --job-name=mech_model
module purge
#source /home/kubilay/anaconda3/bin/activate
#conda activate muspectre_env2
export LD_LIBRARY_PATH=/home/kubilay/PnetCDF/lib/:$LD_LIBRARY_PATH
#module load gcc mvapich2
#module load gcc mvapich2/2.3.4 boost/1.73.0-mpi eigen/3.3.7 fenics/2019.1.0-mpi-openmp python/3.7.7
#source /scratch/kubilay/virtualenv/${SYS_TYPE}_gcc_mvapich/bin/activate
echo "*** STARTING JOB ***"
module restore am_env
LOG_FILE="mechanical_model.log"
which python3 > $LOG_FILE
which mpirun >> $LOG_FILE
which srun >> $LOG_FILE
echo "*** STARTING JOB ***" >> $LOG_FILE
srun -n 4 python3 -c "from mpi4py import MPI; comm = MPI.COMM_WORLD; print('srun: rank ', comm.rank, ' of ', comm.size)" >> $LOG_FILE
srun -n 4 python3 -c "from dolfin import Mesh, XDMFFile, MeshTransformation, Point, HDF5File, FunctionSpace, Function" >> $LOG_FILE
#mpirun -np 4 python3 -c "from mpi4py import MPI; comm = MPI.COMM_WORLD; print('mpirun: rank ', comm.rank, ' of ', comm.size)" >> $LOG_FILE
#mpirun -np 4 python3 -c "from dolfin import Mesh, XDMFFile, MeshTransformation, Point, HDF5File, FunctionSpace, Function" >> $LOG_FILE
srun -n 4 python3 import_files.py >> $LOG_FILE
#mpirun -np 4 python3 import_files.py >> $LOG_FILE
#conda deactivate
echo "*** JOB FINISHED ***"
echo "*** JOB FINISHED ***" >> $LOG_FILE
Event Timeline
Log In to Comment