Skip to content
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
1 change: 0 additions & 1 deletion ndsl/dsl/ndsl_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def check_for_quantity(object_: object) -> None:
obj=self,
config=self._dace_config,
)
print(type(self))

def __getattribute__(self, name: str) -> Any:
attr = super().__getattribute__(name)
Expand Down
1 change: 0 additions & 1 deletion ndsl/dsl/stencil.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def compare_ranks(comm: Comm, data: dict) -> Mapping[str, int]:
other = comm.sendrecv(array, pair_rank)
arr_diffs = np.sum(np.logical_and(~np.isnan(array), array != other))
if arr_diffs > 0:
print(name, rank, pair_rank, array, other)
differences[name] = arr_diffs
return differences

Expand Down
5 changes: 0 additions & 5 deletions ndsl/quantity/quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,6 @@ def transpose(

def plot_k_level(self, k_index: int = 0) -> None:
field = self.data
print(
"Min and max values:",
field[:, :, k_index].min(),
field[:, :, k_index].max(),
)
plt.xlabel("I")
plt.ylabel("J")

Expand Down
1 change: 0 additions & 1 deletion tests/quantity/test_transpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def quantity_data_input(initial_data, numpy, backend):
array[:] = initial_data
else:
array = initial_data
print(type(array))
return array


Expand Down
1 change: 0 additions & 1 deletion tests/stencils/test_stencils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def test_column_operations():
min_index = quantity_factory.zeros([X_DIM, Y_DIM], "n/a")

code = ColumnOperations(stencil_factory)
print("initalized the class")
code(data, max_value, max_index, min_value, min_index)

assert max_value.field[:] == np.max(data.field[:], axis=2)
Expand Down
1 change: 0 additions & 1 deletion tests/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,5 @@ def test_new_args_gives_different_buffer(allocator, backend, first_args, second_
@pytest.mark.parametrize("allocator, backend", [["ones", "cupy"]], indirect=True)
def test_mpi_unsafe_allocator_exception(backend, allocator):
BUFFER_CACHE.clear()
print(allocator)
with pytest.raises(RuntimeError):
Buffer.pop_from_cache(allocator, shape=(10, 10, 10), dtype=float)
1 change: 0 additions & 1 deletion tests/test_g2g_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def test_halo_update_only_communicate_on_gpu(backend, gpu_communicators):

# We expect no np calls and several cp calls
global N_ZEROS_CALLS # noqa: F824 global ... is unused
print(f"Results {N_ZEROS_CALLS}")
assert N_ZEROS_CALLS[cp.zeros] > 0
assert N_ZEROS_CALLS[np.zeros] == 0

Expand Down
4 changes: 1 addition & 3 deletions tests/test_halo_data_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,18 @@ def quantity(dims, units, origin, extent, shape, dtype, gt4py_backend):
"""A list of quantities whose values are 42.42 in the computational domain and 1
outside of it."""
sz = _shape_length(shape)
print(f"{shape} {sz}")
data = np.arange(0, sz, dtype=dtype).reshape(shape)
if "gtc" not in gt4py_backend:
# should also test code if gt4py_backend is unset
gt4py_backend = None
quantity = Quantity(
return Quantity(
data,
dims=dims,
units=units,
origin=origin,
extent=extent,
gt4py_backend=gt4py_backend,
)
return quantity


@pytest.fixture(params=[-0, -1, -2, -3])
Expand Down