[PATCH] D152054: [OpenMP] Codegen support for thread_limit on target directive

Kazushi Marukawa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 01:53:00 PDT 2023


kaz7 added a comment.

In D152054#4648318 <https://reviews.llvm.org/D152054#4648318>, @sandeepkosuri wrote:

> @kaz7, it seems that the thread_limit is being set properly, but the `omp_get_thread_limit()` is giving a wrong output when you enable anything more than `-O1`. I will fix it as soon as I can. Meanwhile, if you absolutely want the test case to work right now, remove the printf causing the issue or do not run that test case with a higher optimization level than `-O1`.

Thank you for investigating that.  I'm fine with `-O0` result.  I just came across this issue and informed that.  Thank you for your efforts!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152054/new/

https://reviews.llvm.org/D152054



More information about the cfe-commits mailing list