[HIPIFY] Introduce CUDA installation path option '-cuda-path'

Repeats clang's '--cuda-path' option.

[Reason]
In case of absence of any other clang's options setting '-cuda-path' allows not to specify separator '--' before clang's '--cuda-path'.

+ Tests and scripts are updated accordingly.
This commit is contained in:
Evgeny Mankov
2019-01-09 20:18:36 +03:00
rodzic 0e750d727f
commit fbfe005e4e
45 zmienionych plików z 64 dodań i 51 usunięć
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK-NOT: #include <cuda_runtime.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include "hip/hip_runtime.h"
// CHECK-NOT: #include "cuda_runtime.h"
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #pragma once
// CHECK-NEXT: #include <hip/hip_runtime.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK-NEXT: #include <stdio.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #pragma once
// CHECK-NEXT: #include <hip/hip_runtime.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include <hipblas.h>
// CHECK-NOT: #include <cublas_v2.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include "hipblas.h"
// CHECK-NOT: #include "cublas.h"
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK-NOT: #include <cuda_runtime.h>
@@ -1,4 +1,4 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK: #include <memory>