Merge pull request #341 from emankov/hipBLAS

[HIPIFY][fix] CUDA and cuBLAS main headers correct handling
Tá an tiomantas seo le fáil i:
Evgeny Mankov
2018-01-24 18:09:12 +03:00
tiomanta ag GitHub
tuismitheoir 59ac25f59b 600d5d7c06
tiomantas befa8dbbce
D'athraigh 8 comhad le 71 breiseanna agus 21 scriosta
+3 -1
Féach ar an gComhad
@@ -1,6 +1,8 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK-NOT: #include <cuda_runtime.h>
// CHECK: #include <stdio.h>
#include <cuda.h>
// CHECK-NOT: #include<cuda_runtime.h>
#include <cuda_runtime.h>
#include <stdio.h>
+6 -4
Féach ar an gComhad
@@ -1,6 +1,8 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include <hip/hip_runtime.h>
#include <cuda_runtime.h>
// CHECK-NOT: #include<cuda.h>
#include <cuda.h>
// CHECK: #include "hip/hip_runtime.h"
// CHECK-NOT: #include "cuda_runtime.h"
// CHECK: #include <stdio.h>
#include "cuda.h"
#include "cuda_runtime.h"
#include <stdio.h>
+8
Féach ar an gComhad
@@ -0,0 +1,8 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include <hipblas.h>
// CHECK-NOT: #include <cublas_v2.h>
// CHECK: #include <stdio.h>
#include <cublas.h>
#include <cublas_v2.h>
#include <stdio.h>
+8
Féach ar an gComhad
@@ -0,0 +1,8 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include "hipblas.h"
// CHECK-NOT: #include "cublas.h"
// CHECK: #include <stdio.h>
#include "cublas_v2.h"
#include "cublas.h"
#include <stdio.h>
+14
Féach ar an gComhad
@@ -0,0 +1,14 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include <hip/hip_runtime.h>
// CHECK-NOT: #include <cuda_runtime.h>
// CHECK: #include <iostream>
// CHECK: #include "hipblas.h"
// CHECK-NOT: #include "cublas.h"
// CHECK: #include <stdio.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include "cublas_v2.h"
#include "cublas.h"
#include <stdio.h>