From 79b4a3f3df5c172c501975ffd74bdd0c57f0f417 Mon Sep 17 00:00:00 2001 From: rfj82982 Date: Fri, 20 Jan 2023 14:33:37 +0000 Subject: [PATCH] Reactivate the halo test without GPU execution --- examples/Makefile | 8 ++++++-- examples/halo_test/halo_test.f90 | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 1643583b..508a0c0b 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,7 +1,7 @@ -.PHONY: init_test test2d fft_physical_x fft_physical_z io_test +.PHONY: init_test test2d fft_physical_x fft_physical_z halo_test io_test # Just build the examples -examples: init_test test2d fft_physical_x fft_physical_z io_test +examples: init_test test2d fft_physical_x fft_physical_z halo_test io_test @echo "Built the examples" init_test: @@ -12,6 +12,8 @@ fft_physical_x: $(MAKE) -C $@ all fft_physical_z: $(MAKE) -C $@ all +halo_test: + $(MAKE) -C $@ $@ io_test: $(MAKE) -C $@ all @@ -20,6 +22,7 @@ check: cd test2d; $(MAKE) $@ cd fft_physical_x; $(MAKE) $@ cd fft_physical_z; $(MAKE) $@ + cd halo_test; $(MAKE) $@ cd io_test; $(MAKE) $@ clean: @@ -27,6 +30,7 @@ clean: cd test2d; $(MAKE) $@ cd fft_physical_x; $(MAKE) $@ cd fft_physical_z; $(MAKE) $@ + cd halo_test; $(MAKE) $@ cd io_test; $(MAKE) $@ export diff --git a/examples/halo_test/halo_test.f90 b/examples/halo_test/halo_test.f90 index 29447a18..6442c395 100644 --- a/examples/halo_test/halo_test.f90 +++ b/examples/halo_test/halo_test.f90 @@ -33,9 +33,15 @@ program halo_test logical :: passing, all_pass +#if defined(_GPU) + write(*,*) 'Halo is not currently support on GPU. This test is not performed' + return +#endif + call MPI_INIT(ierror) call decomp_2d_init(nx, ny, nz, p_row, p_col) + xlast = xsize(1) - 1 if (xend(2) == ny) then ylast = xsize(2) - 1