[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:
@@ -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>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.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 "hip/hip_complex.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
@@ -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>
|
||||
#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: #include <hip/hip_runtime.h>
|
||||
#include <cuda.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Taken from: http://docs.nvidia.com/cuda/curand/device-api-overview.html#poisson-api-example
|
||||
/*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
// CHECK: #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
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// To measure effects of memory coalescing. Coalescing.cu
|
||||
// B. Wilkinson Jan 30, 2011
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
/*
|
||||
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Taken from Jonathan Hui blog https://jhui.github.io/2017/03/06/CUDA
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
/*
|
||||
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Taken from Jonathan Hui blog https://jhui.github.io/2017/03/06/CUDA
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %run_test hipify "%s" "%t" %cuda_args
|
||||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args
|
||||
|
||||
// Kernel definition
|
||||
__global__ void vecAdd(float* A, float* B, float* C)
|
||||
|
||||
Reference in New Issue
Block a user