[Libomptarget] Fix disabling amdgpu on non-Linux.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Feb 2023 13:44:25 +0000 (07:44 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 4 Feb 2023 13:45:03 +0000 (07:45 -0600)
commit71fb11ff34691ab08cdb0d174ea058e44ad2fea6
treecec8d5f6d78aa46d3c9e8004545ec1dacc6135b4
parentef30e57469f1ee53ba44dab86d1975decd8da852
[Libomptarget] Fix disabling amdgpu on non-Linux.

Previously, on non-Linux, amdgpu would get enabled whatever the CPU architecture.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D143017
openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
openmp/libomptarget/plugins/cuda/CMakeLists.txt