[Openmp-commits] [openmp] 0a42c9b - Enable CUDA offloading on aarch64 host

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 20 15:39:53 PDT 2020


Author: George Rokos
Date: 2020-03-20T15:38:47-07:00
New Revision: 0a42c9bfe4ea996d39fb93d622531be6d770a4bd

URL: https://github.com/llvm/llvm-project/commit/0a42c9bfe4ea996d39fb93d622531be6d770a4bd
DIFF: https://github.com/llvm/llvm-project/commit/0a42c9bfe4ea996d39fb93d622531be6d770a4bd.diff

LOG: Enable CUDA offloading on aarch64 host

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

Added: 
    

Modified: 
    openmp/libomptarget/plugins/cuda/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/cuda/CMakeLists.txt b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
index 06c3dd94878f..54bcdf26e9e6 100644
--- a/openmp/libomptarget/plugins/cuda/CMakeLists.txt
+++ b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
@@ -1,16 +1,16 @@
 ##===----------------------------------------------------------------------===##
-# 
+#
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-# 
+#
 ##===----------------------------------------------------------------------===##
 #
 # Build a plugin for a CUDA machine if available.
 #
 ##===----------------------------------------------------------------------===##
-if (NOT(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
-  libomptarget_say("Not building CUDA offloading plugin: only support CUDA in Linux x86_64 or ppc64le hosts.")
+if (NOT(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
+  libomptarget_say("Not building CUDA offloading plugin: only support CUDA in Linux x86_64, ppc64le, or aarch64 hosts.")
   return()
 elseif (NOT LIBOMPTARGET_DEP_LIBELF_FOUND)
   libomptarget_say("Not building CUDA offloading plugin: libelf dependency not found.")


        


More information about the Openmp-commits mailing list