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

Fix for : Incorrect value provided by OMPD for thread-limit-var. #11

Closed jinisusan closed 4 years ago

jinisusan commented 4 years ago

The ICV value was incorrectly being read from kmp_max_nth instead of from kmp_threads[__kmp_gtid]->th.th_current_task->td_icvs.thread_limit. Fix provided by: nagajyothi.e@amd.com

jprotze commented 4 years ago

You are right, thread-limit-var is not a device variable. Since it's scope is data environment, it binds to tasks. Please change to task as the input.

jinisusan commented 4 years ago

Thanks, @jprotze. Made the requested change