Introduction
Introduction Statistics Contact Development Disclaimer Help
tadd preliminary job generation script - sphere - GPU-based 3D discrete element…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit b3fe59280cf6edd295c93d9d25c8abcc8686b267
parent 5d0c3d2e690e751c1660c570429b796abd7cb002
Author: Anders Damsgaard Christensen <[email protected]>
Date: Thu, 2 Jun 2016 15:19:41 -0700
add preliminary job generation script
Diffstat:
A python/generate-rate-state-scripts… | 56 +++++++++++++++++++++++++++…
1 file changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/python/generate-rate-state-scripts.py b/python/generate-rate-state…
t@@ -0,0 +1,56 @@
+#!/usr/bin/env python
+import subprocess
+
+# Account and cluster information
+# https://portal.xsede.org/sdsc-comet
+# https://www.sdsc.edu/support/user_guides/comet.html
+account = 'csd492' # from `show_accounts`
+jobname_prefix = 'rs0-'
+walltime = '2-0' # hours:minutes:seconds or days-hours
+partition = 'gpu-shared'
+no_gpus = 1
+no_nodes = 1
+ntasks_per_node = 1
+
+# Simulation parameter values
+effective_stresses = [10e3, 20e3, 100e3, 200e3, 1000e3, 2000e3]
+velfacs = [0.1, 1.0, 10.0]
+
+for effective_stress in effective_stresses:
+ for velfac in velfacs:
+
+ jobname = 'rs0-' + str(effective_stress) + 'Pa-v=' + str(velfac)
+
+ # Generate scripts for queue manager, submit with `sbatch <script>`
+ generate_slurm_script(jobname,
+ effective_stress,
+ velfac)
+
+ generate_slurm_continue_script(jobname,
+ effective_stress,
+ velfac)
+
+ generate_simulation_script(jobname,
+ effective_stress,
+ velfac)
+
+ generate_simulation_continue_script(jobname,
+ effective_stress,
+ velfac)
+
+def generate_slurm_script(effective_stress, velfac):
+
+ slurm_script = '''#!/bin/bash
+ #SBATCH -A {account}
+ #SBATCH --job-name
+ '''.format(account)
+
+slurm_continue_script = '''
+'''
+
+# Generate scripts for sphere
+simulation_script = '''#!/usr/bin/env python
+'''
+
+simulation_continue_script = '''#!/usr/bin/env python
+'''
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.