diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-10-07 16:42:12 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-10-13 16:41:26 +0200 |
commit | c599eac7c9576a74707a3fa9b3c02cff05b09760 (patch) | |
tree | 25f6cfaf89c9864263b2958fedaa2bdb0859f3eb /cuda/3d/fdk.cu | |
parent | e1d094bd07933733e5d9936076c78ab77f265e37 (diff) | |
download | astra-c599eac7c9576a74707a3fa9b3c02cff05b09760.tar.gz astra-c599eac7c9576a74707a3fa9b3c02cff05b09760.tar.bz2 astra-c599eac7c9576a74707a3fa9b3c02cff05b09760.tar.xz astra-c599eac7c9576a74707a3fa9b3c02cff05b09760.zip |
Clean up unused variables
Diffstat (limited to 'cuda/3d/fdk.cu')
-rw-r--r-- | cuda/3d/fdk.cu | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/cuda/3d/fdk.cu b/cuda/3d/fdk.cu index 7c3ee18..19ef338 100644 --- a/cuda/3d/fdk.cu +++ b/cuda/3d/fdk.cu @@ -46,48 +46,19 @@ $Id$ #include "../../include/astra/Logging.h" -typedef texture<float, 3, cudaReadModeElementType> texture3D; - -static texture3D gT_coneProjTexture; - namespace astraCUDA3d { -static const unsigned int g_volBlockZ = 16; - -static const unsigned int g_anglesPerBlock = 64; -static const unsigned int g_volBlockX = 32; -static const unsigned int g_volBlockY = 16; - static const unsigned int g_anglesPerWeightBlock = 16; static const unsigned int g_detBlockU = 32; static const unsigned int g_detBlockV = 32; static const unsigned g_MaxAngles = 12000; -__constant__ float gC_angle_sin[g_MaxAngles]; -__constant__ float gC_angle_cos[g_MaxAngles]; __constant__ float gC_angle[g_MaxAngles]; // per-detector u/v shifts? -static bool bindProjDataTexture(const cudaArray* array) -{ - cudaChannelFormatDesc channelDesc = cudaCreateChannelDesc<float>(); - - gT_coneProjTexture.addressMode[0] = cudaAddressModeBorder; - gT_coneProjTexture.addressMode[1] = cudaAddressModeBorder; - gT_coneProjTexture.addressMode[2] = cudaAddressModeBorder; - gT_coneProjTexture.filterMode = cudaFilterModeLinear; - gT_coneProjTexture.normalized = false; - - cudaBindTextureToArray(gT_coneProjTexture, array, channelDesc); - - // TODO: error value? - - return true; -} - __global__ void devFDK_preweight(void* D_projData, unsigned int projPitch, unsigned int startAngle, unsigned int endAngle, float fSrcOrigin, float fDetOrigin, float fZShift, float fDetUSize, float fDetVSize, const SDimensions3D dims) { |