Grid icon indicating copy to clipboard operation
Grid copied to clipboard

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

Open james-simone opened this issue 2 years ago • 1 comments

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 [email protected] // New primitives; explicit host thread calls, and accelerator data parallel calls //////////////////////////////////////////////////////////////////////////////////

+#include <strings.h> #ifdef _OPENMP #define GRID_OMP #include <omp.h> `

james-simone avatar Jun 22 '22 21:06 james-simone

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

paboyle avatar Jun 27 '22 17:06 paboyle