2
0

[HIPIFY][FIX][#306] Eliminate second cuda main include directive

// hipified to #include<hip/hip_runtime.h>
#include<cuda.h> // 1st cuda main include (Driver API)
// to eliminate
#include<cuda_runtime.h> // 2nd cuda main include (Runtime API)

HIP has one header hip_runtime.h for both CUDA APIs, thus second cuda main include directive is eliminated entirely.


[ROCm/hip commit: 7e7cfa10cc]
Este cometimento está contido em:
Evgeny Mankov
2017-12-26 20:54:54 +03:00
ascendente 9931328a11
cometimento 263cacc1c2
3 ficheiros modificados com 26 adições e 8 eliminações
+6
Ver ficheiro
@@ -0,0 +1,6 @@
// RUN: %run_test hipify "%s" "%t" %cuda_args
// CHECK: #include <hip/hip_runtime.h>
#include <cuda.h>
// CHECK-NOT: #include<cuda_runtime.h>
#include <cuda_runtime.h>
+6
Ver ficheiro
@@ -0,0 +1,6 @@
// 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>