From 1dd79f23f783564719a52de7d9b54b17005c32d7 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 2 May 2014 09:20:54 +0000 Subject: Add SIRT-Weighted BP3D (par3d-only) for use in large BP --- cuda/3d/arith3d.cu | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cuda/3d/arith3d.cu') diff --git a/cuda/3d/arith3d.cu b/cuda/3d/arith3d.cu index 7cb56f6..cc96da5 100644 --- a/cuda/3d/arith3d.cu +++ b/cuda/3d/arith3d.cu @@ -52,6 +52,11 @@ struct opAddMul { out += in1 * in2; } }; +struct opAdd { + __device__ void operator()(float& out, const float in) { + out += in; + } +}; struct opMul { __device__ void operator()(float& out, const float in) { out *= in; @@ -594,6 +599,7 @@ INST_DDFtoD(opAddMulScaled) INST_DDtoD(opAddMul) INST_DDtoD(opMul2) INST_DtoD(opMul) +INST_DtoD(opAdd) INST_DtoD(opDividedBy) INST_toD(opInvert) INST_FtoD(opSet) -- cgit v1.2.3