Open X-Strahl opened 11 months ago
I also see issues like this sometimes where it seemingly succeeds but the reconstruction looks like this (This is a vertical slice), where a large portion has no value.
Thanks! this seems an edge case on the memory management of CUDA, I believe. I'll investigate.
When I was using a remote Python interpreter in PyCharm, I encountered a similar issue.
../Common/CUDA/TIGRE_common.cpp (7): Main loop fail
../Common/CUDA/TIGRE_common.cpp (14): CBCT:CUDA:Atb an illegal memory access was encountered
Solution:
edit configurations->Environment->Environment variables
add LD_LIBRARY_PATH=[path to cuda lib64];
. e.g. Replace [path to cuda lib64]
with /usr/local/cuda/lib64
.thanks for that information @immortalmin ! I think its the same error, but I don't think its caused by the same issue. However, super important info, thanks for bringing this up!
I am having issues reconstructing certain geometries in TIGRE with MLEM and CGLS/LSQR (FDK works fine). This only happens with certain geometry combinations and I have not been able to pinpoint what triggers it exactly. By just downsampling the radiographs, I am able to circumvent it, but smaller radiographs do not mean it will succeed. Sometimes upsampling fixes the issue. This includes changing the geometry of course (detector pixel amount and size).
With this code:
I can provoke the error. And I get the output:
Hardware is 512GB RAM and dual RTX 4090. Forcing TIGRE to just use one GPU does not fix the issue. Latest Cython and Numpy is used.