summaryrefslogtreecommitdiffstats
path: root/cuda/2d/darthelper.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-11-01 15:05:13 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-11-01 15:05:13 +0100
commitf70f68fcd465f421b566b199e23e66c1f186b01d (patch)
tree1699757401101eabac1e2bffc67b5ddc23cf1aeb /cuda/2d/darthelper.cu
parentadda34cf902c246a75eb46800949dc15d5e84f37 (diff)
downloadastra-f70f68fcd465f421b566b199e23e66c1f186b01d.tar.gz
astra-f70f68fcd465f421b566b199e23e66c1f186b01d.tar.bz2
astra-f70f68fcd465f421b566b199e23e66c1f186b01d.tar.xz
astra-f70f68fcd465f421b566b199e23e66c1f186b01d.zip
Separate cuda from astra headers further
Diffstat (limited to 'cuda/2d/darthelper.cu')
-rw-r--r--cuda/2d/darthelper.cu16
1 files changed, 0 insertions, 16 deletions
diff --git a/cuda/2d/darthelper.cu b/cuda/2d/darthelper.cu
index 744184e..d4b5220 100644
--- a/cuda/2d/darthelper.cu
+++ b/cuda/2d/darthelper.cu
@@ -356,20 +356,4 @@ void dartSmoothing(float* out, const float* in, float b, unsigned int radius, un
}
-
-_AstraExport bool setGPUIndex(int iGPUIndex)
-{
- if (iGPUIndex != -1) {
- cudaSetDevice(iGPUIndex);
- cudaError_t err = cudaGetLastError();
-
- // Ignore errors caused by calling cudaSetDevice multiple times
- if (err != cudaSuccess && err != cudaErrorSetOnActiveProcess)
- return false;
- }
-
- return true;
-}
-
-
}