Repository navigation
Support for httomolibgpu's remove_stripe_fw
#82
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 from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,9 +25,11 @@ | |
| import numpy as np | ||
|
|
||
| from httomo_backends.cufft import CufftType, cufft_estimate_1d | ||
| from httomolibgpu.prep.stripe import remove_stripe_fw | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "_calc_memory_bytes_for_slices_remove_stripe_fw", | ||
|
Collaborator
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. Again httomo will look exactly into a certain name of the function. So your function needs to be: |
||
| "_calc_memory_bytes_remove_stripe_ti", | ||
| "_calc_memory_bytes_remove_all_stripe", | ||
| "_calc_memory_bytes_raven_filter", | ||
|
|
@@ -53,6 +55,14 @@ def _calc_memory_bytes_remove_stripe_ti( | |
| return (tot_memory_bytes, gamma_mem) | ||
|
|
||
|
|
||
| def _calc_memory_bytes_for_slices_remove_stripe_fw( | ||
|
Collaborator
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. and this should be |
||
| dims_shape: Tuple[int, int, int], | ||
|
Collaborator
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. then here we have a bigger problem. Passing a 3 values in the tuple why only 2 are accepted. We call that |
||
| dtype: np.dtype, | ||
| **kwargs, | ||
| ) -> int: | ||
| return remove_stripe_fw(dims_shape, calc_peak_gpu_mem=True, **kwargs) | ||
|
|
||
|
|
||
| def _calc_memory_bytes_remove_all_stripe( | ||
| non_slice_dims_shape: Tuple[int, int], | ||
| dtype: np.dtype, | ||
|
|
||
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.
Those strings describe how httomo calculates the memory, so far we have only direct and "else". For else we use the name module, which I explain in the comments bellow. But I think you need to make "module" here and make your function iterative bellow.