Prefix HIP includes with hip/

[ROCm/hip commit: bc4f388b69]
Šī revīzija ir iekļauta:
Maneesh Gupta committed 2016-04-19 15:02:12 +05:30
1 vecāks 3e6cd3795b
revīzija b29742d6f8
10 files changed
+25 -25

No files matched your search

+3 -3
Parādīt failu
@@ -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 "$_";
}