aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-18 18:19:29 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:33 +0100
commit8e9f89cb00f783b23b3c004976fb08b56819fe64 (patch)
treef95a0f7bb17632d238139502a321f9e8cc74038f /tests
parent599c277480ee1d3d5a1a2ffb486e855b845c0dbe (diff)
Finish fixing compiler warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/gpu_sim_check.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gpu_sim_check.c b/tests/gpu_sim_check.c
index fa8e104d..b006ea8a 100644
--- a/tests/gpu_sim_check.c
+++ b/tests/gpu_sim_check.c
@@ -23,6 +23,7 @@
#include "../src/detector.h"
#include "../src/beam-parameters.h"
#include "../src/utils.h"
+#include "../src/symmetry.h"
#ifdef HAVE_CLOCK_GETTIME
@@ -65,6 +66,7 @@ int main(int argc, char *argv[])
const double sep = 20.0;
double start, end;
double gpu_time, cpu_time;
+ SymOpList *sym;
gctx = setup_gpu(1, NULL, NULL, NULL, 0);
if ( gctx == NULL ) {
@@ -141,12 +143,16 @@ int main(int argc, char *argv[])
end = get_hires_seconds();
gpu_time = end - start;
+ sym = get_pointgroup("1");
+
start = get_hires_seconds();
get_diffraction(&cpu_image, 8, 8, 8, NULL, NULL, NULL, cell,
- GRADIENT_MOSAIC, "1");
+ GRADIENT_MOSAIC, sym);
end = get_hires_seconds();
cpu_time = end - start;
+ free_symoplist(sym);
+
STATUS("The GPU version was %5.2f times faster.\n", cpu_time/gpu_time);
gpu_min = +INFINITY; gpu_max = -INFINITY; gpu_tot = 0.0;