-
Notifications
You must be signed in to change notification settings - Fork 11
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
Changes to test configurations options and externals for parsing #53
Changes from 8 commits
164120b
a8e58e6
170e47a
94b1079
6999653
e2bd82f
50c8bc7
7db441a
ad6c500
2a5c9f4
fc21a7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
+4 −2 | .github/workflows/pyFV3-ci.yml | |
+1 −1 | dace/config_schema.yml | |
+2 −0 | dace/sdfg/sdfg.py | |
+7 −0 | dace/sdfg/state.py | |
+36 −1 | dace/transformation/passes/analysis.py | |
+88 −39 | dace/viewer/templates/sdfv.html | |
+1 −1 | dace/viewer/webclient | |
+49 −0 | tests/passes/sdfg_constraint_derivation_test.py |
+1 −2 | src/gt4py/next/program_processors/runners/dace_iterator/itir_to_sdfg.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -989,7 +989,6 @@ def fill_corners_dgrid_defn( | |
x_out: FloatField, | ||
y_in: FloatField, | ||
y_out: FloatField, | ||
mysign: float, | ||
): | ||
""" | ||
Args: | ||
|
@@ -998,7 +997,7 @@ def fill_corners_dgrid_defn( | |
y_in (in): | ||
y_out (inout): | ||
""" | ||
from __externals__ import i_end, i_start, j_end, j_start | ||
from __externals__ import i_end, i_start, j_end, j_start, mysign | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass it as a default externals or directly a scalar, since never changes in our code |
||
|
||
with computation(PARALLEL), interval(...): | ||
# sw corner | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,8 @@ def pytest_addoption(parser): | |
parser.addoption( | ||
"--topology", | ||
action="store", | ||
default="cube-sphere", | ||
help='Topology of the grid. "cube-sphere" means a 6-faced grid, "doubly-periodic" means a 1 tile grid. Default to "cube-sphere".', | ||
default="cubed-sphere", | ||
help='Topology of the grid. "cubed-sphere" means a 6-faced grid, "doubly-periodic" means a 1 tile grid. Default to "cubed-sphere".', | ||
) | ||
|
||
|
||
|
@@ -189,7 +189,7 @@ def get_ranks(metafunc, layout): | |
if only_rank is None: | ||
if topology == "doubly-periodic": | ||
total_ranks = layout[0] * layout[1] | ||
elif topology == "cube-sphere": | ||
elif topology == "cubed-sphere": | ||
total_ranks = 6 * layout[0] * layout[1] | ||
else: | ||
raise NotImplementedError(f"Topology {topology} is unknown.") | ||
|
@@ -370,7 +370,7 @@ def generate_parallel_stencil_tests(metafunc, *, backend: str): | |
|
||
|
||
def get_communicator(comm, layout, topology_mode): | ||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "doubly-periodic"): | ||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "cubed-sphere"): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change will definitely make a big difference!! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a bug I introduce in the PR right before |
||
partitioner = CubedSpherePartitioner(TilePartitioner(layout)) | ||
communicator = CubedSphereCommunicator(comm, partitioner) | ||
else: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too aggressive as a fix. The
axis_offsets
function shouldn't carry the mysign issue.