diff options
author | Willem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:33 +0000 |
---|---|---|
committer | wpalenst <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:33 +0000 |
commit | bcff7884bb89dbecd394c75a8f57b0a54a743b52 (patch) | |
tree | 7b1d52bdb9dea23fb5c2dcacf3e6b179786ad26b /cuda/2d/util.h | |
parent | 959f476f456b147999649ec3a8cca10017b2ad6c (diff) | |
download | astra-bcff7884bb89dbecd394c75a8f57b0a54a743b52.tar.gz astra-bcff7884bb89dbecd394c75a8f57b0a54a743b52.tar.bz2 astra-bcff7884bb89dbecd394c75a8f57b0a54a743b52.tar.xz astra-bcff7884bb89dbecd394c75a8f57b0a54a743b52.zip |
Change allocate/zeroVolume to volume/sinogram-specific variants
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); |