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

papiGetTID error #404

Open
OneMoreProblem opened this issue Jun 16, 2022 · 1 comment
Open

papiGetTID error #404

OneMoreProblem opened this issue Jun 16, 2022 · 1 comment

Comments

@OneMoreProblem
Copy link

Hello

Yesterday i was tried to use PAPI and face with an error:

[build] /usr/bin/ld: CMakeFiles/MatMulB.dir/tutorial_examples/MatriMultBaseline.cpp.o: in function `void galois::runtime::internal::papiInit<void>()':
[build] /home/user/Galois/install/include/galois/runtime/Profile.h:95: undefined reference to `galois::runtime::internal::papiGetTID()'

In Profile.h:95 i found reference to papiGetTID(), and declaration of papiGetTID() in Profile.h:78 as i understand papiGetTID() returns thread id.

Also i found papi.h:1095 declaration of similar function PAPI_thread_id(), then i swapped papiGetTID() for PAPI_thread_id(), and code with PAPI was build fine. Is it correct? Why papiGetTID() don't works?

My environment:

PAPI version: 6.0.0.1
cmake version 3.22.1
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Ubuntu 22.04 LTS

Best regards

@OneMoreProblem
Copy link
Author

This solution is not helped because program is stuck on galois::runtime::profilePapi block. I tried to swap papiGetTID() for galois::substrate::ThreadPool::getTID and change return type to unsigned long but got the ERROR: /home/r00662636/Galois/install/include/galois/runtime/Profile.h:129: failed to add events. I have no idea how to fix it, maybe problem lies in compilation stage.

Best regards

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

1 participant