diff options
Diffstat (limited to 'cuda/2d/util.h')
-rw-r--r-- | cuda/2d/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cuda/2d/util.h b/cuda/2d/util.h index ed4a45c..3cffa08 100644 --- a/cuda/2d/util.h +++ b/cuda/2d/util.h @@ -73,9 +73,14 @@ bool copySinogramToDevice(const float* in_data, unsigned int in_pitch, float* outD_data, unsigned int out_pitch); bool allocateVolume(float*& D_ptr, unsigned int width, unsigned int height, unsigned int& pitch); - void zeroVolume(float* D_data, unsigned int pitch, unsigned int width, unsigned int height); +bool allocateVolumeData(float*& D_ptr, unsigned int& pitch, const SDimensions& dims); +bool allocateProjectionData(float*& D_ptr, unsigned int& pitch, const SDimensions& dims); +void zeroVolumeData(float* D_ptr, unsigned int pitch, const SDimensions& dims); +void zeroProjectionData(float* D_ptr, unsigned int pitch, const SDimensions& dims); + + bool cudaTextForceKernelsCompletion(); void reportCudaError(cudaError_t err); |