[PATCH] D75001: [OpenMP][cmake] ignore warning on unknown CUDA version
Kelvin Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 06:30:04 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe16e267bb6ee: [OpenMP][cmake] ignore warning on unknown CUDA version (authored by kkwli0).
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75001/new/
https://reviews.llvm.org/D75001
Files:
openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
Index: openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
===================================================================
--- openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
+++ openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
@@ -38,7 +38,8 @@
if(try_compile_result)
foreach(regex IN LISTS failed_regexes)
- if("${OUTPUT}" MATCHES ${regex})
+ # Ignore the warning about the newer or unknown CUDA version.
+ if(("${OUTPUT}" MATCHES ${regex}) AND NOT ("${OUTPUT}" MATCHES "Unknown CUDA version"))
set(retval FALSE)
endif()
endforeach()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75001.246438.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200225/d2a8a1d6/attachment.bin>
More information about the cfe-commits
mailing list