paboyle / Grid

Data parallel C++ mathematical object library
GNU General Public License v2.0
155 stars 111 forks source link

hipcc on Crusher: function bcopy undefined (compiler does not have openmp enabled?) #408

Open james-simone opened 2 years ago

james-simone commented 2 years ago

Builtin function bcopy is undefined when the compiler does not have openmp. The workaround is to include the header strings.h.

` diff --git a/Grid/threads/Threads.h b/Grid/threads/Threads.h index 6887134d..52a3dfde 100644 --- a/Grid/threads/Threads.h +++ b/Grid/threads/Threads.h @@ -40,6 +40,7 @@ Author: paboyle paboyle@ph.ed.ac.uk // New primitives; explicit host thread calls, and accelerator data parallel calls //////////////////////////////////////////////////////////////////////////////////

+#include

ifdef _OPENMP

define GRID_OMP

include

`

paboyle commented 2 years ago

Fixed on develop (was already fixed on a branch - it affects SYCL too)