summaryrefslogtreecommitdiffstats
path: root/cuda/2d/util.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:46 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:46 +0000
commite0b3ad8e57f269e34085ba319aa399ee3476811a (patch)
treee34426606814f3df61f4e590c76d17e808925a37 /cuda/2d/util.h
parentc72bc7cd47ecb5665a287fb88e101f88118f5232 (diff)
downloadastra-e0b3ad8e57f269e34085ba319aa399ee3476811a.tar.gz
astra-e0b3ad8e57f269e34085ba319aa399ee3476811a.tar.bz2
astra-e0b3ad8e57f269e34085ba319aa399ee3476811a.tar.xz
astra-e0b3ad8e57f269e34085ba319aa399ee3476811a.zip
Replace direct cudaMemcpy2D calls by utility functions
Diffstat (limited to 'cuda/2d/util.h')
-rw-r--r--cuda/2d/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cuda/2d/util.h b/cuda/2d/util.h
index 83cb794..c0ec49e 100644
--- a/cuda/2d/util.h
+++ b/cuda/2d/util.h
@@ -80,6 +80,10 @@ bool allocateProjectionData(float*& D_ptr, unsigned int& pitch, const SDimension
void zeroVolumeData(float* D_ptr, unsigned int pitch, const SDimensions& dims);
void zeroProjectionData(float* D_ptr, unsigned int pitch, const SDimensions& dims);
+void duplicateVolumeData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims);
+void duplicateProjectionData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims);
+
+
bool cudaTextForceKernelsCompletion();
void reportCudaError(cudaError_t err);