| 1 |
// REQUIRES: system-windows |
| 2 |
|
| 3 |
// RUN: touch %t.o |
| 4 |
|
| 5 |
// Test HIP runtime lib args specified by --rocm-path. |
| 6 |
// RUN: %clang -### --hip-link --target=x86_64-pc-windows-msvc \ |
| 7 |
// RUN: --rocm-path=%S/Inputs/rocm %t.o 2>&1 \ |
| 8 |
// RUN: | FileCheck %s |
| 9 |
|
| 10 |
// Test HIP runtime lib is linked without --hip-link when there is HIP input file. |
| 11 |
// RUN: %clang -### --target=x86_64-pc-windows-msvc -nogpuinc -nogpulib \ |
| 12 |
// RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 13 |
// RUN: | FileCheck %s |
| 14 |
|
| 15 |
// CHECK: "-libpath:{{.*Inputs.*rocm.*lib}}" "amdhip64.lib" |