[Openmp-commits] [PATCH] D72058: [OpenMP] Enabling CPU affinity on Darwin platform proposal

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 20 02:07:34 PST 2020


protze.joachim added a comment.

As Johannes, I cannot test this. The code seems reasonable.
Please apply clang-format on the changes.

Something like:

  git clang-format HEAD~



================
Comment at: openmp/runtime/src/kmp_affinity.h:317
+      kern_return_t r =
+	  thread_policy_get(mach_thread_self(), THREAD_AFFINITY_POLICY, reinterpret_cast<thread_policy_t>(&tmask), &cnt, &def);
+      if (r == KERN_SUCCESS) {
----------------
The formatting looks wrong here.

please apply `git clang-format`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72058





More information about the Openmp-commits mailing list