Prefix HIP includes with hip/

[ROCm/hip commit: bc4f388b69]
This commit is contained in:
Maneesh Gupta
2016-04-19 15:02:12 +05:30
parent 3e6cd3795b
commit b29742d6f8
10 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -228,8 +228,8 @@ while (@ARGV) {
#--------
#Includes:
$countIncludes += s/(\s*#\s*include\s+)[<"]cuda_runtime\.h[>"]/$1<hip_runtime.h>/;
$countIncludes += s/(\s*#\s*include\s+)[<"]cuda_runtime_api\.h[>"]/$1<hip_runtime_api.h>/;
$countIncludes += s/(\s*#\s*include\s+)[<"]cuda_runtime\.h[>"]/$1<hip\/hip_runtime.h>/;
$countIncludes += s/(\s*#\s*include\s+)[<"]cuda_runtime_api\.h[>"]/$1<hip\/hip_runtime_api.h>/;
#--------
@@ -559,7 +559,7 @@ while (@ARGV) {
# If this file makes kernel builtin calls, and does not include the cuda_runtime.h,
# then add an #include to match "magic" includes provided by NVCC.
# This logic can miss cases where cuda_runtime.h is included by another include file.
print $OUTFILE '#include "hip_runtime.h"' . ($is_dos ? "\r\n" : "\n");
print $OUTFILE '#include "hip/hip_runtime.h"' . ($is_dos ? "\r\n" : "\n");
}
print $OUTFILE "$_";
}