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

linking error multi definition of offload code #19

Closed
ye-luo opened this issue Jul 28, 2019 · 3 comments
Closed

linking error multi definition of offload code #19

ye-luo opened this issue Jul 28, 2019 · 3 comments

Comments

@ye-luo
Copy link

ye-luo commented Jul 28, 2019

Use reproducer linking.zip

$ sh build.sh 
error: Linking globals named '__omp_offloading_10304_1e81eac__ZN3fooIfEC1Ev_l7_exec_mode': symbol multiply defined!
clang-8: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)

When the offload compiler flags are removed, the code links well.

@estewart08
Copy link
Contributor

Issue was replicated and code was added to use identifying information from the includer file instead of the includee (t.h) file so that the symbol name is unique. This fix will most likely be implemented in our next release of AOMP (0.7-1).

@estewart08
Copy link
Contributor

The fix can also be found in our latest release 0.7-2.

@ye-luo
Copy link
Author

ye-luo commented Sep 10, 2019

I confirm that the issue has been fixed in 0.7-2.

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