PAPI defines global functions and variables without PAPI_ prefix

Create issue
Issue #1741 closed
Roland Haas created an issue

In its stats.c source file (which gets compiled into the thorn), PAPI defines several globally visible symbols, eg:

void outinfo(const char *const function)
...
int num_threads;

which are not prefixed with the thorn name so possibly conflict with other thorns. According to the Cactus user guide http://einsteintoolkit.org/documentation/UsersGuide/UsersGuidech9.html#x13-144000C1.9.7 users are suggested to prefix them by the thorn name (or put into a C++ namespace) to avoid conflicts.

Keyword: PAPI

Comments (3)

  1. anonymous
    • removed comment

    See "stats.h":

    #define outinfo PAPI_Cactus_outinfo
    void outinfo(const char *const function);
    

    This is just a local short-cut to make code more readable.

  2. Log in to comment