Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
macroplacement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
macroplacement
Commits
a7b39ac5
Commit
a7b39ac5
authored
Jul 06, 2022
by
Ravi Varadarajan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update script to create a unique run dir based on date time
Signed-off-by: Ravi Varadarajan <rvaradarajan@ucsd.edu>
parent
5c6d4e13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Flows/util/genJobList.py
+6
-2
No files found.
Flows/util/genJobList.py
View file @
a7b39ac5
...
...
@@ -2,6 +2,7 @@ import os
import
shutil
import
fileinput
import
re
import
time
testcases
=
[
'ariane136'
,
'ariane133'
,
'mempool_tile'
,
'nvdla'
]
enablements
=
[
'NanGate45'
,
'ASAP7'
]
...
...
@@ -9,17 +10,20 @@ job_file = "all_jobs"
flows
=
[
1
,
2
]
fp
=
open
(
job_file
,
"w"
)
run_dir_name
=
f
"run-{time.strftime('
%
Y
%
m
%
d-
%
H
%
M
%
S')}"
for
enablement
in
enablements
:
for
testcase
in
testcases
:
for
flow
in
flows
:
## Check if the run directory exists
run_dir
=
f
"./{enablement}/{testcase}/run"
run_dir
=
f
"./{enablement}/{testcase}/{run_dir_name}"
print
(
run_dir
)
if
not
os
.
path
.
exists
(
run_dir
):
os
.
makedirs
(
run_dir
)
## Copy the scripts
scripts_src
=
f
"./{enablement}/{testcase}/scripts/cadence"
scripts_dst
=
f
"./{enablement}/{testcase}/run/flow{flow}"
scripts_dst
=
f
"{run_dir}/flow{flow}"
#scripts_dst = f"./{enablement}/{testcase}/run/flow{flow}"
if
os
.
path
.
exists
(
scripts_dst
):
print
(
f
"For TestCase:{testcase} Enablement:{enablement} Flow:{flow} already exists. So not generating job for this"
)
shutil
.
copytree
(
scripts_src
,
scripts_dst
)
...
...
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