[libomptarget][nfc] Change enum values to match those in cuda/rtl
authorJonChesterfield <jonathanchesterfield@gmail.com>
Wed, 12 Feb 2020 23:25:33 +0000 (23:25 +0000)
committerJonChesterfield <jonathanchesterfield@gmail.com>
Wed, 12 Feb 2020 23:27:08 +0000 (23:27 +0000)
commitc2ce9ea4e372ee31271da44c727dc598e12261a5
tree48a3daff0252c54236f667dd6058ad2620952b24
parent5f2a74c87abc4ed926e93e75d1c3178723a47322
[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
openmp/libomptarget/deviceRTLs/common/support.h