From 899faabba87628698fbc02a06f4a91ba6469fd8d Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 3 Dec 2014 11:44:20 +0100 Subject: Move BP coordinate transformation to utility function --- cuda/3d/cone_bp.cu | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cuda/3d/cone_bp.cu') diff --git a/cuda/3d/cone_bp.cu b/cuda/3d/cone_bp.cu index 3b0fd70..149a655 100644 --- a/cuda/3d/cone_bp.cu +++ b/cuda/3d/cone_bp.cu @@ -267,6 +267,9 @@ bool ConeBP_Array(cudaPitchedPtr D_volumeData, // NB: We increment angles at the end of the loop body. + + // TODO: Use functions from dims3d.cu for this: + #define TRANSFER_TO_CONSTANT(expr,name) do { for (unsigned int i = 0; i < angleCount; ++i) tmp[i] = (expr) ; cudaMemcpyToSymbol(gC_##name, tmp, angleCount*sizeof(float), 0, cudaMemcpyHostToDevice); } while (0) TRANSFER_TO_CONSTANT( (angles[i].fDetSZ - angles[i].fSrcZ)*angles[i].fDetVY - (angles[i].fDetSY - angles[i].fSrcY)*angles[i].fDetVZ , Cux ); -- cgit v1.2.3