Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
james-simone opened this issue Jun 22, 2022 · 1 comment

Comments

@james-simone
Copy link

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 <strings.h>
#ifdef _OPENMP
#define GRID_OMP
#include <omp.h>
`

@james-simone james-simone changed the title Function bcopy undefined when compiler does not have openmp hipcc on Crusher: function bcopy undefined (compiler does not have openmp enabled?) Jun 27, 2022
@paboyle
Copy link
Owner

paboyle commented Jun 27, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants