Skip to content

papiGetTID error #404

@OneMoreProblem

Description

@OneMoreProblem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions