diff options
Diffstat (limited to 'cuda/2d')
-rw-r--r-- | cuda/2d/algo.cu | 2 | ||||
-rw-r--r-- | cuda/2d/cgls.cu | 4 | ||||
-rw-r--r-- | cuda/2d/em.cu | 4 | ||||
-rw-r--r-- | cuda/2d/sart.cu | 4 | ||||
-rw-r--r-- | cuda/2d/sirt.cu | 4 |
5 files changed, 4 insertions, 14 deletions
diff --git a/cuda/2d/algo.cu b/cuda/2d/algo.cu index f809c23..b4c2864 100644 --- a/cuda/2d/algo.cu +++ b/cuda/2d/algo.cu @@ -42,7 +42,6 @@ ReconAlgo::ReconAlgo() { parProjs = 0; fanProjs = 0; - shouldAbort = false; useVolumeMask = false; useSinogramMask = false; @@ -77,7 +76,6 @@ void ReconAlgo::reset() parProjs = 0; fanProjs = 0; - shouldAbort = false; useVolumeMask = false; useSinogramMask = false; diff --git a/cuda/2d/cgls.cu b/cuda/2d/cgls.cu index 696a0c1..b6a9fae 100644 --- a/cuda/2d/cgls.cu +++ b/cuda/2d/cgls.cu @@ -114,8 +114,6 @@ bool CGLS::copyDataToGPU(const float* pfSinogram, unsigned int iSinogramPitch, f bool CGLS::iterate(unsigned int iterations) { - shouldAbort = false; - if (!sliceInitialized) { // copy sinogram @@ -146,7 +144,7 @@ bool CGLS::iterate(unsigned int iterations) // iteration - for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) { + for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) { // w = A*p zeroProjectionData(D_w, wPitch, dims); diff --git a/cuda/2d/em.cu b/cuda/2d/em.cu index ca09d31..aa272d8 100644 --- a/cuda/2d/em.cu +++ b/cuda/2d/em.cu @@ -117,15 +117,13 @@ bool EM::precomputeWeights() bool EM::iterate(unsigned int iterations) { - shouldAbort = false; - #if 0 if (useVolumeMask) precomputeWeights(); #endif // iteration - for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) { + for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) { // Do FP of volumeData zeroProjectionData(D_projData, projPitch, dims); diff --git a/cuda/2d/sart.cu b/cuda/2d/sart.cu index cf9babc..64973ba 100644 --- a/cuda/2d/sart.cu +++ b/cuda/2d/sart.cu @@ -166,13 +166,11 @@ bool SART::precomputeWeights() bool SART::iterate(unsigned int iterations) { - shouldAbort = false; - if (useVolumeMask) precomputeWeights(); // iteration - for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) { + for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) { int angle; if (customOrder) { diff --git a/cuda/2d/sirt.cu b/cuda/2d/sirt.cu index 7ec377c..2621490 100644 --- a/cuda/2d/sirt.cu +++ b/cuda/2d/sirt.cu @@ -238,13 +238,11 @@ bool SIRT::uploadMinMaxMasks(const float* pfMinMaskData, const float* pfMaxMaskD bool SIRT::iterate(unsigned int iterations) { - shouldAbort = false; - if (useVolumeMask || useSinogramMask) precomputeWeights(); // iteration - for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) { + for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) { // copy sinogram to projection data duplicateProjectionData(D_projData, D_sinoData, projPitch, dims); |