[all-commits] [llvm/llvm-project] fdeffd: [libomptarget][cuda] Only run tests when sure ther...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Tue Jan 26 12:46:10 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fdeffd6fb0c1a824137c502e2b1c182aded17325
      https://github.com/llvm/llvm-project/commit/fdeffd6fb0c1a824137c502e2b1c182aded17325
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2021-01-26 (Tue, 26 Jan 2021)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/CMakeLists.txt

  Log Message:
  -----------
  [libomptarget][cuda] Only run tests when sure there is cuda available

[libomptarget][cuda] Only run tests when sure there is cuda available

Prior to D95155, building the cuda plugin implied cuda was installed locally.
With that change, every machine can build a cuda plugin, but they won't all have
cuda and/or an nvptx card installed locally.

This change enables the nvptx tests when either:
- libcuda is present
- the user has forced use of the dlopen stub

The default case when there is no cuda detected will no longer attempt to
run the tests on nvptx hardware, as was the case before D95155.

Reviewed By: jdoerfert, ronlieb

Differential Revision: https://reviews.llvm.org/D95467




More information about the All-commits mailing list