Skip to content

Revert "Release CUDA resources on error, and stop exit(1) in the Python binding" - #777

Merged
AnderBiguri merged 1 commit into
masterfrom
revert-765-fix/cuda-error-propagation
Sep 7, 2026
Merged

AnderBiguri merged 1 commit into
masterfrom
revert-765-fix/cuda-error-propagation

Conversation

@AnderBiguri

Copy link
Copy Markdown
Member

Reverts #765

It Broke MATLAB compilation

@AnderBiguri
AnderBiguri merged commit aa5a92d into master Sep 7, 2026
2 of 4 checks passed
yliu88au added a commit to liu005/TIGRE that referenced this pull request Sep 7, 2026
…LastError, previously Python-only); fallback error text when the buffer is empty

CERN#765 moved tigreSet/Get/ClearLastError() out of the IS_FOR_PYTIGRE block of
Common/CUDA/TIGRE_common.cpp and made Atb_mex.cpp call tigreGetLastError(),
but MATLAB/Compile.m never compiled TIGRE_common.cpp (before CERN#765 the file
was Python-only), so the Atb mex target failed to link: unresolved
tigreGetLastError. Reverted upstream in CERN#777. This adds the file to both Atb
mex() lines (it is a plain C++ file; under MATLAB it compiles only the three
last-error functions). Under MATLAB the CUDA-side macros still raise through
the real mexErrMsgIdAndTxt(), so the buffer is empty when Atb_mex reports a
non-CUDA status code - a fallback message replaces the empty string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant