![]() #define OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_PARALLEL_DATA get_client_parallel_data #define OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_THREAD_DATA get_client_thread_data To reduce the amount of memory allocations, the user can define macros before including the ompt-multiplex.h file, that specify custom data access handlers: Note that EXAMPLE_TOOL_LIBRARIES may also contain a list of paths to tools which will be tried to load in order (similar to lists in OMP_TOOL_LIBRARIES). $ OMP_TOOL_LIBRARIES=/path/to/first/tool.so EXAMPLE_TOOL_LBRARIES=/path/to/second/tool.so. Note that functions and variables with prefix "ompt_multiplex" are reserved by the tool #define CLIENT_TOOL_LIBRARIES_VAR "EXAMPLE_TOOL_LIBRARIES" # How to compile and use your OpenMP toolsĬode of first tool must include the following with the convention, that the environment variable containing the path to the client tool is the tool name with the suffix "_TOOL_LIBRARIES": $ export PYTHONPATH=$HOME/.local/lib/python3.*/site-packages/ Multiplexing of OMPT callbacks, data pointers and runtime entry functions.Įither build llvm and find lit+FileCheck in build directory of llvm or install using `pip`: The header file can also be used to load more than two tools using a cascade Overcome the restriction of the OpenMP to only load one tool at a time. ![]() The OMPT-Multiplexing header file allows a tool to load a second tool to
0 Comments
Leave a Reply. |