summaryrefslogtreecommitdiffstats
path: root/cuda/3d/rounding.h
diff options
context:
space:
mode:
Diffstat (limited to 'cuda/3d/rounding.h')
-rw-r--r--cuda/3d/rounding.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cuda/3d/rounding.h b/cuda/3d/rounding.h
new file mode 100644
index 0000000..a263f84
--- /dev/null
+++ b/cuda/3d/rounding.h
@@ -0,0 +1,9 @@
+#include <cuda_fp16.h>
+
+#define texto __float2half
+#define texfrom __half2float
+#define textype half
+
+//#define texto
+//#define texfrom
+//#define textype float