httomo-backends 0.7__py3-none-any.whl → 0.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py +20 -14
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.1.dist-info}/METADATA +1 -1
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.1.dist-info}/RECORD +6 -6
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.1.dist-info}/WHEEL +0 -0
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.1.dist-info}/licenses/LICENSE +0 -0
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.1.dist-info}/top_level.txt +0 -0
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py
CHANGED
|
@@ -192,7 +192,11 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
192
192
|
detector_pad = 0
|
|
193
193
|
|
|
194
194
|
min_mem_usage_filter = False
|
|
195
|
+
if "min_mem_usage_filter" in kwargs:
|
|
196
|
+
min_mem_usage_filter = kwargs["min_mem_usage_filter"]
|
|
195
197
|
min_mem_usage_ifft2 = False
|
|
198
|
+
if "min_mem_usage_ifft2" in kwargs:
|
|
199
|
+
min_mem_usage_ifft2 = kwargs["min_mem_usage_ifft2"]
|
|
196
200
|
|
|
197
201
|
angles_tot = non_slice_dims_shape[0]
|
|
198
202
|
DetectorsLengthH_prepad = non_slice_dims_shape[1]
|
|
@@ -339,21 +343,21 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
339
343
|
|
|
340
344
|
add_to_memory_counters(tmp_p_input_slice, True)
|
|
341
345
|
if min_mem_usage_filter:
|
|
342
|
-
add_to_memory_counters(rfft_plan_slice_size / 4, False)
|
|
343
|
-
add_to_memory_counters(irfft_plan_slice_size / 4, False)
|
|
344
|
-
add_to_memory_counters(padded_tmp_p_input_slice, False)
|
|
346
|
+
add_to_memory_counters(rfft_plan_slice_size / 4 / projection_chunk_count, False)
|
|
347
|
+
add_to_memory_counters(irfft_plan_slice_size / 4 / projection_chunk_count, False)
|
|
348
|
+
add_to_memory_counters(padded_tmp_p_input_slice / projection_chunk_count, False)
|
|
345
349
|
|
|
346
|
-
add_to_memory_counters(rfft_result_size, False)
|
|
347
|
-
add_to_memory_counters(filtered_rfft_result_size, False)
|
|
348
|
-
add_to_memory_counters(-rfft_result_size, False)
|
|
349
|
-
add_to_memory_counters(-padded_tmp_p_input_slice, False)
|
|
350
|
+
add_to_memory_counters(rfft_result_size / projection_chunk_count, False)
|
|
351
|
+
add_to_memory_counters(filtered_rfft_result_size / projection_chunk_count, False)
|
|
352
|
+
add_to_memory_counters(-rfft_result_size / projection_chunk_count, False)
|
|
353
|
+
add_to_memory_counters(-padded_tmp_p_input_slice / projection_chunk_count, False)
|
|
350
354
|
|
|
351
|
-
add_to_memory_counters(irfft_scratch_memory_size, False)
|
|
352
|
-
add_to_memory_counters(-irfft_scratch_memory_size, False)
|
|
353
|
-
add_to_memory_counters(irfft_result_size, False)
|
|
354
|
-
add_to_memory_counters(-filtered_rfft_result_size, False)
|
|
355
|
+
add_to_memory_counters(irfft_scratch_memory_size / projection_chunk_count, False)
|
|
356
|
+
add_to_memory_counters(-irfft_scratch_memory_size / projection_chunk_count, False)
|
|
357
|
+
add_to_memory_counters(irfft_result_size / projection_chunk_count, False)
|
|
358
|
+
add_to_memory_counters(-filtered_rfft_result_size / projection_chunk_count, False)
|
|
355
359
|
|
|
356
|
-
add_to_memory_counters(-irfft_result_size, False)
|
|
360
|
+
add_to_memory_counters(-irfft_result_size / projection_chunk_count, False)
|
|
357
361
|
else:
|
|
358
362
|
add_to_memory_counters(rfft_plan_slice_size / chunk_count / projection_chunk_count * 2, True)
|
|
359
363
|
add_to_memory_counters(irfft_plan_slice_size / chunk_count / projection_chunk_count * 2, True)
|
|
@@ -402,8 +406,10 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
402
406
|
add_to_memory_counters(circular_mask_size, False)
|
|
403
407
|
add_to_memory_counters(after_recon_swapaxis_slice, True)
|
|
404
408
|
|
|
405
|
-
if
|
|
406
|
-
return (tot_memory_bytes * 1.
|
|
409
|
+
if min_mem_usage_filter and min_mem_usage_ifft2:
|
|
410
|
+
return (tot_memory_bytes * 1.15, fixed_amount)
|
|
411
|
+
elif min_mem_usage_filter and not min_mem_usage_ifft2:
|
|
412
|
+
return (tot_memory_bytes + 60 * 1024 * 1024, fixed_amount)
|
|
407
413
|
else:
|
|
408
414
|
return (tot_memory_bytes * 1.1, fixed_amount)
|
|
409
415
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: httomo-backends
|
|
3
|
-
Version: 0.7
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Supplementary files for HTTomo backends.
|
|
5
5
|
Author: Garry ODonnell, Jacob Williamson
|
|
6
6
|
Author-email: Daniil Kazantsev <daniil.kazantsev@diamond.ac.uk>, Yousef Moazzam <yousef.moazzam@diamond.ac.uk>, Jessica Verschoyle <jessica.verschoyle@diamond.ac.uk>, Naman Gera <naman.gera@diamond.ac.uk>, scientificsoftware@diamond.ac.uk
|
|
@@ -20,7 +20,7 @@ httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs
|
|
|
20
20
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/prep/phase.py,sha256=kYznizW0jMVJdGyuE10McVLsWWggUsP5bvJiHEVvSSM,4075
|
|
21
21
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/prep/stripe.py,sha256=KnS8IpcXaLeiIWr4qAKwOrcK1vS9zrU6u5gOITZ159k,4623
|
|
22
22
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py,sha256=
|
|
23
|
+
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py,sha256=CuiMAxu7qG0I41XiucrvSf2kZHjid_dgD0gUXF9cE0k,21267
|
|
24
24
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/peak_memory_line_profile_hook.py,sha256=hb-CyqD5TKxDg6Rg5fvFeXIO2nvjbp_XMTeRdJZ8ONo,6347
|
|
25
25
|
httomo_backends/methods_database/packages/backends/tomopy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
httomo_backends/methods_database/packages/backends/tomopy/tomopy.yaml,sha256=URe18BAV1EbGLil53t88T42BuKSiUHz6r3uzs_wo8Ug,11215
|
|
@@ -144,8 +144,8 @@ httomo_backends/yaml_templates/tomopy/tomopy.sim.project/add_zingers.yaml,sha256
|
|
|
144
144
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project.yaml,sha256=XBVhW5ZxT9C89tHcwDG7OOgcWNdNtQq97mqlBEoiMnU,202
|
|
145
145
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project2.yaml,sha256=5raeQ-w9nS9mbAzn2ZqhPjdcyfLOkkJflKNStdEnYRA,238
|
|
146
146
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project3.yaml,sha256=oyofKSMi-_dSpfjrKVMNDqoBhBCCSYbEVRz2Lsc8uTI,257
|
|
147
|
-
httomo_backends-0.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
148
|
-
httomo_backends-0.7.dist-info/METADATA,sha256=
|
|
149
|
-
httomo_backends-0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
150
|
-
httomo_backends-0.7.dist-info/top_level.txt,sha256=v4x8d4CeEyMwo8QoqIvL_p-WoXAVD1bVnASPIrLjSTg,16
|
|
151
|
-
httomo_backends-0.7.dist-info/RECORD,,
|
|
147
|
+
httomo_backends-0.7.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
148
|
+
httomo_backends-0.7.1.dist-info/METADATA,sha256=fifr2fnWW5CvPDXWR1WA-9McdqN4LCbmtWW_QRf7BUI,2312
|
|
149
|
+
httomo_backends-0.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
150
|
+
httomo_backends-0.7.1.dist-info/top_level.txt,sha256=v4x8d4CeEyMwo8QoqIvL_p-WoXAVD1bVnASPIrLjSTg,16
|
|
151
|
+
httomo_backends-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|