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

Missing documentation on src/tracer/wrappers/OMP/genstubs-*.sh #118

Open
valentin-seitz opened this issue Jul 30, 2024 · 2 comments
Open

Comments

@valentin-seitz
Copy link

This issue relates to #117
In the current version of Extrae (v4.2.1) it's not very clear on how to use the src/tracer/wrappers/OMP/genstubs-kmpc-11.sh script. The same does apply for the src/tracer/wrappers/OMP/genstubs-libgomp.sh script.
Searching the documentation did not clarify on how to use it.
The script currently also doesn't provide any usage information.

Additionally, it required the Makefile.am.in to be present which is also not a part of the current distribution see #117 :

cp ${INTERMEDIATE_PATH}/Makefile.am.in ${INTERMEDIATE_PATH}/Makefile.am

@gllort
Copy link
Contributor

gllort commented Jul 31, 2024

Related to #117, get the sources from our Github instead. Then, you can increase the number of stubs generated:

cd src/tracer/wrappers/OMP
vi genstubs-kmpc-11.sh

Increase the value of MAX_WRAPPERS above 648, for example try setting it to 700 or 800.

Then do the whole configure && make && make install and try again. Please note, the building will take significantly more time to compile!

@valentin-seitz
Copy link
Author

valentin-seitz commented Aug 1, 2024

I think it would be nice if MAX_WRAPPERS would be a command line argument, so you could use it like:

cd src/tracer/wrappers/OMP
./genstubs-kmpc-11.sh 649

Just executing ./genstubs-kmpc-11.sh would print a small usage header and exit.
In the error message generated to the users (see below) one would be able to include the command the user should invoke.

fprintf (stderr, PACKAGE_NAME": Error! Can't retrieve handler to stub '%s' (%d arguments)! Quitting!\n"
PACKAGE_NAME": Recompile Extrae to support this number of arguments!\n"
PACKAGE_NAME": Use src/tracer/wrappers/OMP/genstubs-kmpc-11.sh to do so.\n",
kmpc_parallel_sched_name, argc);

A solution proposal can be found in #121

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