Skip to content

Commit

Permalink
[OpenMP][cmake] ignore warning on unknown CUDA version
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D75001
  • Loading branch information
kkwli committed Feb 25, 2020
1 parent 2bd6974 commit e16e267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function(libomp_check_linker_flag flag boolean)

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()
Expand Down

0 comments on commit e16e267

Please sign in to comment.