OpenMPToolsInterface / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
http://llvm.org
2 stars 4 forks source link

Added libomp dir to ompd_dll_location #45

Closed vigbalu closed 8 months ago

vigbalu commented 3 years ago

if libompd cant be found at any standard or LD_LIBRARY_PATH, will search on libomp dir. ompd_dll_location first index is "libompd.so", second index is dir/libompd.so.

This is helpful when that both libomp and 3rd party tool (such as gdb) can be run on different environment.

Removed "_print" from "ompd_open", since callback function "printf" initialized only after this call. Cant use "_printf" as well since that also call "_print" in it.