Skip to content

Commit e16e267

Browse files
committed
[OpenMP][cmake] ignore warning on unknown CUDA version
Differential Revision: https://reviews.llvm.org/D75001
1 parent 2bd6974 commit e16e267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openmp/runtime/cmake/LibompCheckLinkerFlag.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function(libomp_check_linker_flag flag boolean)
3838

3939
if(try_compile_result)
4040
foreach(regex IN LISTS failed_regexes)
41-
if("${OUTPUT}" MATCHES ${regex})
41+
# Ignore the warning about the newer or unknown CUDA version.
42+
if(("${OUTPUT}" MATCHES ${regex}) AND NOT ("${OUTPUT}" MATCHES "Unknown CUDA version"))
4243
set(retval FALSE)
4344
endif()
4445
endforeach()

0 commit comments

Comments
 (0)