Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
8dda9c36
Commit
8dda9c36
authored
7 years ago
by
Duncan Meacher
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_etg: Added comments
parent
1cba0e30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gstlal-ugly/bin/gstlal_etg_pipe
+7
-5
7 additions, 5 deletions
gstlal-ugly/bin/gstlal_etg_pipe
gstlal-ugly/share/etg/Makefile.gstlal_etg_offline
+1
-1
1 addition, 1 deletion
gstlal-ugly/share/etg/Makefile.gstlal_etg_offline
with
8 additions
and
6 deletions
gstlal-ugly/bin/gstlal_etg_pipe
+
7
−
5
View file @
8dda9c36
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""
"""
This program makes a dag to run gstlal_
inspiral
offline
This program makes a dag to run gstlal_
etg
offline
"""
"""
__author__
=
'
Duncan Meacher <duncan.meacher@ligo.org>
'
__author__
=
'
Duncan Meacher <duncan.meacher@ligo.org>
'
...
@@ -62,8 +62,9 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
...
@@ -62,8 +62,9 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
outstr
=
""
outstr
=
""
out_index
=
0
out_index
=
0
n_channels
=
0
n_channels
=
0
n_cpu
=
0
n_cpu
=
0
# Loop over all channels to determine number of streams and minimum number of processes needed
for
ii
,
channel
in
enumerate
(
channels
,
1
):
for
ii
,
channel
in
enumerate
(
channels
,
1
):
samp_rate
=
data_source_info
.
channel_dict
[
channel
][
'
fsamp
'
]
samp_rate
=
data_source_info
.
channel_dict
[
channel
][
'
fsamp
'
]
max_samp_rate
=
min
(
2048
,
int
(
samp_rate
))
max_samp_rate
=
min
(
2048
,
int
(
samp_rate
))
...
@@ -74,6 +75,7 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
...
@@ -74,6 +75,7 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
if
cumsum_rates
>=
options
.
streams
or
ii
==
len
(
data_source_info
.
channel_dict
.
keys
()):
if
cumsum_rates
>=
options
.
streams
or
ii
==
len
(
data_source_info
.
channel_dict
.
keys
()):
n_cpu
+=
1
n_cpu
+=
1
cumsum_rates
=
0
cumsum_rates
=
0
# Create more even distribution of channels across minimum number of processes
n_streams
=
math
.
ceil
(
total_rates
/
n_cpu
)
n_streams
=
math
.
ceil
(
total_rates
/
n_cpu
)
if
options
.
verbose
:
if
options
.
verbose
:
print
"
Total streams =
"
,
total_rates
print
"
Total streams =
"
,
total_rates
...
@@ -91,11 +93,11 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
...
@@ -91,11 +93,11 @@ def etg_node_gen(gstlalETGJob, dag, parent_nodes, options, channels, data_source
cumsum_rates
+=
n_rates
cumsum_rates
+=
n_rates
outstr
=
outstr
+
channel
+
"
:
"
+
str
(
int
(
samp_rate
))
outstr
=
outstr
+
channel
+
"
:
"
+
str
(
int
(
samp_rate
))
#
if cumsum_rates < options.streams:
#
Adds channel to current process
if
cumsum_rates
<
n_streams
:
if
cumsum_rates
<
n_streams
:
outstr
=
outstr
+
"
--channel-name=
"
outstr
=
outstr
+
"
--channel-name=
"
#
if cumsum_rates >= options.streams or ii == len(data_source_info.channel_dict.keys()):
#
Finalise each process once number of streams passes threshold
if
cumsum_rates
>=
n_streams
or
ii
==
len
(
data_source_info
.
channel_dict
.
keys
()):
if
cumsum_rates
>=
n_streams
or
ii
==
len
(
data_source_info
.
channel_dict
.
keys
()):
out_index
+=
1
out_index
+=
1
outpath
=
options
.
out_path
+
"
/gstlal_etg/gstlal_etg_%04d
"
%
out_index
outpath
=
options
.
out_path
+
"
/gstlal_etg/gstlal_etg_%04d
"
%
out_index
...
@@ -190,7 +192,7 @@ dag = inspiral_pipe.DAG("etg_pipe")
...
@@ -190,7 +192,7 @@ dag = inspiral_pipe.DAG("etg_pipe")
gstlalETGJob
=
inspiral_pipe
.
generic_job
(
"
gstlal_etg
"
,
condor_commands
=
inspiral_pipe
.
condor_command_dict_from_opts
(
options
.
condor_command
,
{
"
request_memory
"
:
options
.
request_memory
,
"
request_cpus
"
:
options
.
request_cpu
,
"
want_graceful_removal
"
:
"
True
"
,
"
kill_sig
"
:
"
15
"
}))
gstlalETGJob
=
inspiral_pipe
.
generic_job
(
"
gstlal_etg
"
,
condor_commands
=
inspiral_pipe
.
condor_command_dict_from_opts
(
options
.
condor_command
,
{
"
request_memory
"
:
options
.
request_memory
,
"
request_cpus
"
:
options
.
request_cpu
,
"
want_graceful_removal
"
:
"
True
"
,
"
kill_sig
"
:
"
15
"
}))
#
#
#
Inspiral jobs by segment
#
ETG jobs
#
#
etg_nodes
=
etg_node_gen
(
gstlalETGJob
,
dag
,
[],
options
,
channels
,
data_source_info
)
etg_nodes
=
etg_node_gen
(
gstlalETGJob
,
dag
,
[],
options
,
channels
,
data_source_info
)
...
...
This diff is collapsed.
Click to expand it.
gstlal-ugly/share/etg/Makefile.gstlal_etg_offline
+
1
−
1
View file @
8dda9c36
...
@@ -2,7 +2,7 @@ SHELL := /bin/bash
...
@@ -2,7 +2,7 @@ SHELL := /bin/bash
# condor commands
# condor commands
# Set the accounting tag from https://ldas-gridmon.ligo.caltech.edu/ldg_accounting/user
# Set the accounting tag from https://ldas-gridmon.ligo.caltech.edu/ldg_accounting/user
ACCOUNTING_TAG
=
ligo.dev.o3.detchar.onlinedq.idq
ACCOUNTING_TAG
=
ligo.dev.o3.detchar.onlinedq.idq
GROUP_USER
=
duncan.meacher
GROUP_USER
=
albert.einstein
CONDOR_COMMANDS
:=
--condor-command
=
accounting_group
=
$(
ACCOUNTING_TAG
)
--condor-command
=
accounting_group_user
=
$(
GROUP_USER
)
CONDOR_COMMANDS
:=
--condor-command
=
accounting_group
=
$(
ACCOUNTING_TAG
)
--condor-command
=
accounting_group_user
=
$(
GROUP_USER
)
#########################
#########################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment