aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/grids.h
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-26 01:07:10 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-26 01:07:10 -0400
commit033863ab3d37574441183f65664d0c72ab2707be (patch)
tree0efc429873fdf8b6aeff5d78d711cf8702892e96 /src/grids.h
parenta3862f8d92d9476eab29b0c4f74e1f1e8de92520 (diff)
first pass at cuda implementation
Diffstat (limited to 'src/grids.h')
-rw-r--r--src/grids.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/grids.h b/src/grids.h
index 942bb7f..b823c91 100644
--- a/src/grids.h
+++ b/src/grids.h
@@ -3,7 +3,9 @@
#include <stddef.h>
#include <stdio.h>
#include <stdbool.h>
+#ifndef __NVCC__
#include <complex.h>
+#endif
#include "precision.h"
//grid write errors
@@ -35,7 +37,10 @@ void free_grid(grid_t* grid);
bool grid_equal(const grid_t* grid1, const grid_t* grid2);
bool grid_allclose(const grid_t* grid1, const grid_t* grid2, const size_t max_error);
+#ifndef __NVCC__
CBASE complex grid_to_complex(const grid_t* grid, const size_t index);
+#endif
+
void zoom_grid(grid_t* grid, const CBASE magnification);
void print_grid_info(const grid_t* grid);