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()
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()
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits