Make pinned/page-locked memory optional
AnderBiguri opened this issue · 2 comments
AnderBiguri commented
This would slow the proj/backproj, but will allow people to use swap memory.
AnderBiguri commented
This can be done "easily" at Compile time.
We can have a user flag (task 1: allow user flags easily into Compile.m) that is then passed to the CUDA code similar to IS_FOR_MATLAB_TIGRE
, and is used in the following if condition (each file has one):
TIGRE/Common/CUDA/Siddon_projection.cu
Lines 345 to 348 in c55a6bb
The flag could be ENABLE_PINNED_MEMORY
which can be set to TRUE
by default.
AnderBiguri commented
This also needs to be used in the part where the memory is "unpinned", in the end of the main function.