Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable OpenMP sections by default #1282

Merged
merged 4 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dace/codegen/targets/rtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def generate_node(self, sdfg: sdfg.SDFG, dfg: state.StateSubgraphView, state_id:
(2) generate tasklet->out
(3) generate tasklet
"""
callsite_stream.write('{', sdfg, state_id, dfg.node_id(node))
# generate code to handle data input to the tasklet
for edge in dfg.in_edges(node):
# find input array
Expand All @@ -72,6 +73,7 @@ def generate_node(self, sdfg: sdfg.SDFG, dfg: state.StateSubgraphView, state_id:
callsite_stream)
# generate tasklet code
self.unparse_tasklet(sdfg, dfg, state_id, node, function_stream, callsite_stream)
callsite_stream.write('}', sdfg, state_id, dfg.node_id(node))
else:
raise RuntimeError(
"Only tasklets are handled here, not {}. This should have been filtered by the predicate".format(
Expand Down
2 changes: 1 addition & 1 deletion dace/config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ required:

openmp_sections:
type: bool
default: true
default: false
title: Use OpenMP sections
description: >
If set to true, multiple connected components will
Expand Down