summaryrefslogtreecommitdiffstats
path: root/cuda/3d/rounding.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-07-26 23:32:36 +0200
committerSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-07-26 23:32:36 +0200
commitaccc4439d9dd035765ed77d94a0ceece3270cc0b (patch)
tree886507357f95680e8a6a7dc80aefe04ca42c5b2d /cuda/3d/rounding.h
parentbfceef4da377c32cd59d1e51efb9aa1a21c7f4bd (diff)
downloadastra-tnv.tar.gz
astra-tnv.tar.bz2
astra-tnv.tar.xz
astra-tnv.zip
Half-precision back-/forward-projection for parallel geometrytnv
Diffstat (limited to 'cuda/3d/rounding.h')
-rw-r--r--cuda/3d/rounding.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cuda/3d/rounding.h b/cuda/3d/rounding.h
new file mode 100644
index 0000000..b7ccc1c
--- /dev/null
+++ b/cuda/3d/rounding.h
@@ -0,0 +1,11 @@
+#include <cuda_fp16.h>
+
+#define texto __float2half
+#define texfrom __half2float
+#define textype half
+
+
+//#define texto
+//#define texfrom
+//#define textype float
+