[all-commits] [llvm/llvm-project] c2ce9e: [libomptarget][nfc] Change enum values to match th...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Feb 12 15:27:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c2ce9ea4e372ee31271da44c727dc598e12261a5
      https://github.com/llvm/llvm-project/commit/c2ce9ea4e372ee31271da44c727dc598e12261a5
  Author: JonChesterfield <jonathanchesterfield at gmail.com>
  Date:   2020-02-12 (Wed, 12 Feb 2020)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/common/support.h

  Log Message:
  -----------
  [libomptarget][nfc] Change enum values to match those in cuda/rtl

Summary:
[libomptarget][nfc] Change enum values to match those in cuda/rtl

support.h and cuda/rtl.cpp (and downsteam hsa/rtl.cpp) have enums for execution
mode. These are actually independent - the numbers that used within support, or
within the plugin, are never passed across the boundary.

Nevertheless, trying to work out why the values are different between the two
has generated a reasonable amount of confusion. This patch changes support to
match the values in plugin, on the basis that the plugin also has some comments
which I'd have to update if I changed that one instead. Credit to Ron for
working through this in our own fork. See rocm-developer-tools/aomp/issues/7
for that earlier diagnostic write up.

Also happy with generic = 0, spmd = 1 - provided it's the same in both places.

Reviewers: jdoerfert, grokos, ABataev, ronlieb

Reviewed By: grokos

Subscribers: openmp-commits

Tags: #openmp

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




More information about the All-commits mailing list