-
Notifications
You must be signed in to change notification settings - Fork 25
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
ctypes: pass the dimension parameters in the correct order #205
Conversation
Thanks @paskino, this does look right to me. Shall I add some tests (3D) here as well, so we're more certain that all of the methods do what they should? |
Tests are very useful, please add them. |
3e930d9
to
d645d2b
Compare
) | ||
from ccpi.filters.utils import cilregcuda | ||
|
||
gpu_modules_available = cilregcuda is not None |
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.
This may not be sufficient to run the GPU tests.
In CIL we also verify that a NVIDIA GPU is installed by calling nvidia-smi
along these lines
#nvidia
try:
subprocess.check_output('nvidia-smi')
has_nvidia = True
except:
has_nvidia = False
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.
sure, will add that. thanks.
@dkazanc can we merge this and open an issue to add unit tests? |
@paskino Yes, we can. I'm struggling to find time, but I'll come back to it. thanks. |
released as |
The dimension parameter in v24.0.0 is passed reversed to what it was in version v22.0.0, see details below for
FGP_TV
.In this PR, we invert the
dims
list at creation so that the parameters match what was in version 22.Details
v22.0.0
The dimensions
dims
are created as:CCPi-Regularisation-Toolkit/src/Python/src/cpu_regularisers.pyx
Lines 139 to 141 in 71f8d30
and passed inverted:
CCPi-Regularisation-Toolkit/src/Python/src/cpu_regularisers.pyx
Lines 149 to 155 in 71f8d30
24.0.0
The dimensions are created in the same order as in version 22, but used in the opposite order:
CCPi-Regularisation-Toolkit/src/Python/ccpi/filters/TV.py
Lines 82 to 88 in b0e1888