Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenMP] Thread limit is (sometimes) ignored #64845

Closed
jdoerfert opened this issue Aug 21, 2023 · 2 comments
Closed

[OpenMP] Thread limit is (sometimes) ignored #64845

jdoerfert opened this issue Aug 21, 2023 · 2 comments

Comments

@jdoerfert
Copy link
Member

jdoerfert commented Aug 21, 2023

We run this

int main() {
  int n = 1 << 20;
  int th = 12;
  int te = n / th;
#pragma omp target
#pragma omp teams loop num_teams(te), thread_limit(th)
  for (int i = 0; i < n; i++) {
  }
  return 0;
}

with 256 threads on AMD because we do not recognize the thread_limit clause.

@jdoerfert jdoerfert self-assigned this Aug 21, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Aug 21, 2023

@llvm/issue-subscribers-openmp

@tbaederr tbaederr changed the title [OpenMP] Thread limit is (sometimes) ignores [OpenMP] Thread limit is (sometimes) ignored Aug 21, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Aug 23, 2023

@llvm/issue-subscribers-clang-codegen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants