Skip to content

Commit

Permalink
reverting memory estimator for paganin to initial state and add odd s…
Browse files Browse the repository at this point in the history
…ize for the test
  • Loading branch information
dkazanc committed Sep 9, 2024
1 parent 8dfcff4 commit 12949fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _calc_memory_bytes_paganin_filter_tomopy(
+ out_slice_size
+ 2 * complex_slice
+ 0.5 * fftplan_slice
+ res_slice
+ 2 * res_slice
)
subtract_bytes = int(filter_size + grid_size)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_backends/test_httomolibgpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def test_remove_outlier_memoryhook(flats, ensure_clean_memory, dtype, slices):

@pytest.mark.cupy
@pytest.mark.parametrize("slices", [2, 4, 8])
@pytest.mark.parametrize("dim_x", [1024, 2048])
@pytest.mark.parametrize("dim_y", [1024, 2048])
@pytest.mark.parametrize("dim_x", [81, 1024, 2048])
@pytest.mark.parametrize("dim_y", [345, 1024, 2048])
def test_paganin_filter_tomopy_memoryhook(slices, dim_x, dim_y, ensure_clean_memory):
data = cp.random.random_sample((slices, dim_x, dim_y), dtype=np.float32)
hook = MaxMemoryHook()
Expand Down

0 comments on commit 12949fd

Please sign in to comment.