[all-commits] [llvm/llvm-project] 082031: [OpenMP] Fix potential division by 0

nawrinsu via All-commits all-commits at lists.llvm.org
Fri Nov 6 09:59:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 082031949cceceb2a26a9e10ce8890196db43338
      https://github.com/llvm/llvm-project/commit/082031949cceceb2a26a9e10ce8890196db43338
  Author: Nawrin Sultana <nawrin.sultana at intel.com>
  Date:   2020-11-06 (Fri, 06 Nov 2020)

  Changed paths:
    M openmp/runtime/src/kmp_affinity.cpp

  Log Message:
  -----------
  [OpenMP] Fix potential division by 0

This patch fixes potential division by 0 in case hwloc does not
recognize cores (or architecture has no cores).

Patch by Andrey Churbanov

Differential Revision: https://reviews.llvm.org/D90954




More information about the All-commits mailing list