| 1 |
// RUN: touch %t.o |
| 2 |
|
| 3 |
// Test HIP runtime lib args specified by --rocm-path. |
| 4 |
// RUN: %clang -### --hip-link --target=x86_64-pc-windows-msvc \ |
| 5 |
// RUN: --rocm-path=%S/Inputs/rocm %t.o 2>&1 \ |
| 6 |
// RUN: | FileCheck %s |
| 7 |
|
| 8 |
// Test HIP runtime lib is linked without --hip-link when there is HIP input file. |
| 9 |
// RUN: %clang -### --target=x86_64-pc-windows-msvc -nogpuinc -nogpulib \ |
| 10 |
// RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 11 |
// RUN: | FileCheck %s |
| 12 |
|
| 13 |
// Test HIP runtime lib is linked even if -nostdlib is specified when the input |
| 14 |
// is a HIP file. This is important when composing with e.g. the UCRT or other |
| 15 |
// non glibc-like implementations of the C standard library. |
| 16 |
// RUN: %clang -### --target=x86_64-pc-windows-msvc -nogpuinc -nogpulib \ |
| 17 |
// RUN: -nostdlib --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 18 |
// RUN: | FileCheck %s |
| 19 |
|
| 20 |
// CHECK: "-libpath:{{.*Inputs.*rocm.*lib}}" "amdhip64.lib" |