Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
8b66ece4
Commit
8b66ece4
authored
May 12, 2021
by
Hejing Li
Browse files
slurm: one experiment get one numa node
parent
359e170c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
experiments/simbricks/runtime.py
experiments/simbricks/runtime.py
+4
-1
No files found.
experiments/simbricks/runtime.py
View file @
8b66ece4
...
@@ -213,9 +213,12 @@ class SlurmRuntime(Runtime):
...
@@ -213,9 +213,12 @@ class SlurmRuntime(Runtime):
with
open
(
exp_script
,
'w'
)
as
f
:
with
open
(
exp_script
,
'w'
)
as
f
:
f
.
write
(
'#!/bin/sh
\n
'
)
f
.
write
(
'#!/bin/sh
\n
'
)
f
.
write
(
'#SBATCH -o %s -e %s
\n
'
%
(
exp_log
,
exp_log
))
f
.
write
(
'#SBATCH -o %s -e %s
\n
'
%
(
exp_log
,
exp_log
))
f
.
write
(
'#SBATCH -c %d
\n
'
%
(
exp
.
resreq_cores
(),))
#
f.write('#SBATCH -c %d\n' % (exp.resreq_cores(),))
f
.
write
(
'#SBATCH --mem=%dM
\n
'
%
(
exp
.
resreq_mem
(),))
f
.
write
(
'#SBATCH --mem=%dM
\n
'
%
(
exp
.
resreq_mem
(),))
f
.
write
(
'#SBATCH --job-name="%s"
\n
'
%
(
run
.
name
(),))
f
.
write
(
'#SBATCH --job-name="%s"
\n
'
%
(
run
.
name
(),))
f
.
write
(
'#SBATCH --exclude=spyder[01-05],spyder16
\n
'
)
f
.
write
(
'#SBATCH -c 32
\n
'
)
f
.
write
(
'#SBATCH --nodes=1
\n
'
)
if
exp
.
timeout
is
not
None
:
if
exp
.
timeout
is
not
None
:
h
=
int
(
exp
.
timeout
/
3600
)
h
=
int
(
exp
.
timeout
/
3600
)
m
=
int
((
exp
.
timeout
%
3600
)
/
60
)
m
=
int
((
exp
.
timeout
%
3600
)
/
60
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment