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

The ICV "bind-var" needs to be displayed as a list if applicable #24

Closed jinisusan closed 3 years ago

jinisusan commented 3 years ago

Currently, the ompd API ompd_get_icv_from_scope() (through ompd_get_proc_bind()) only returns the first element of the bind-var list. (Even if bind-var is a list with more than 1 element). This needs to be corrected to display the elements of the list from what is corresponding to the current nesting level to "__kmp_nested_proc_bind.used". (Similar to what gets displayed with the nthreads-var).

The proposed implementation is on the lines of the implementation for retrieving the value of nthreads-var. It includes a call to ompd_get_icv_string_from_scope().