summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-11-09 20:57:31 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-01-09 14:23:54 +0100
commit0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6 (patch)
tree69b27fa6406cf318d785c827e1fd05b786da2876 /matlab
parentde27e439a0c59fade175fba4e0b4a1e0c84b933d (diff)
downloadastra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.gz
astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.bz2
astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.xz
astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.zip
Check for CUDA support at run-time in use_cuda()
Diffstat (limited to 'matlab')
-rw-r--r--matlab/mex/astra_mex_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/matlab/mex/astra_mex_c.cpp b/matlab/mex/astra_mex_c.cpp
index 017946a..eda5337 100644
--- a/matlab/mex/astra_mex_c.cpp
+++ b/matlab/mex/astra_mex_c.cpp
@@ -78,7 +78,7 @@ void astra_mex_credits(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[
void astra_mex_use_cuda(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[])
{
if (1 <= nlhs) {
- plhs[0] = mxCreateDoubleScalar(astra::cudaEnabled() ? 1 : 0);
+ plhs[0] = mxCreateDoubleScalar(astra::cudaAvailable() ? 1 : 0);
}
}