[libc-commits] [PATCH] D152209: [libc][obvious] Fix conditional when CUDA is not found

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jun 5 16:51:37 PDT 2023


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa59e1712fa0a: [libc][obvious] Fix conditional when CUDA is not found (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152209/new/

https://reviews.llvm.org/D152209

Files:
  libc/utils/gpu/loader/CMakeLists.txt


Index: libc/utils/gpu/loader/CMakeLists.txt
===================================================================
--- libc/utils/gpu/loader/CMakeLists.txt
+++ libc/utils/gpu/loader/CMakeLists.txt
@@ -15,10 +15,10 @@
 # The CUDA loader requires LLVM to traverse the ELF image for symbols.
 find_package(LLVM QUIET)
 if(CUDAToolkit_FOUND AND LLVM_FOUND AND
-   ${CUDAToolkit_VERSION} VERSION_GREATER_EQUAL "11.2")
+   "${CUDAToolkit_VERSION}" VERSION_GREATER_EQUAL "11.2")
   add_subdirectory(nvptx)
 else()
-  if(${CUDAToolkit_VERSION} VERSION_LESS "11.2")
+  if("${CUDAToolkit_VERSION}" VERSION_LESS "11.2")
     message(WARNING 
       "Skipping CUDA loader for gpu target, CUDA must be version 11.2 or later.
        Found CUDA Version ${CUDAToolkit_VERSION}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152209.528631.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230605/5406ff8e/attachment.bin>


More information about the libc-commits mailing list