[Openmp-commits] [PATCH] D75001: [OpenMP][cmake] ignore warning on unknown CUDA version

Kelvin Li via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Feb 25 09:22:14 PST 2020


kkwli0 added a comment.

> Somewhat related, that means Clang issues a warning for every compilation should there be a "unsupported" CUDA version around, even if it's not used? @tra maybe we can only issue the warning if CUDA is going to be used?

Some related issues were discussed in D74571 <https://reviews.llvm.org/D74571>.

Another possible approach is to include `C_FLAGS` and `CXX_FLAGS` in the test.  Users configure the cmake with `-DCMAKE_CXX_FLAGS=-Wno-unknown-cuda-version -DCMAKE_C_FLAGS=-Wno-unknown-cuda-version` to get around the issues.  So I think this approach can avoid any similar issue blocking the libomp build in the feature.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75001





More information about the Openmp-commits mailing list