Skip to content

Commit

Permalink
Test for cuda path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchlanda committed Jan 13, 2022
1 parent 2f69e97 commit 7e86002
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clang/test/Driver/cuda-windows-cuda-path.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
///
/// Make sure that CUDA_PATH is picked up correctly when looking for CUDA
/// instalation.
///

// REQUIRES: system-windows
// RUN: env CUDA_PATH=%S\Inputs\CUDA_111\usr\local\cuda %clang -fsycl \
// RUN: -fsycl-targets=nvptx64-nvidia-cuda -### -v %s 2>&1 | \
// RUN: FileCheck %s

// CHECK: Found CUDA installation: {{.*}}Inputs\CUDA_111\usr\local\cuda, version 11.1

int main() {}

0 comments on commit 7e86002

Please sign in to comment.