diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index 8116cfbe7c..25e02352ad 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -22,6 +22,8 @@ # THE SOFTWARE. ## +# IMPORTANT: Do not change this file manually: it is generated by hipify-clang --perl + #usage hipify-perl [OPTIONS] INPUT_FILE use Getopt::Long; diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp index 9bbb52a2fa..df83bf8d57 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp @@ -60,6 +60,7 @@ namespace perl { "# THE SOFTWARE.\n" "##\n"; + const string sImportant = "# IMPORTANT: Do not change this file manually: it is generated by hipify-clang --perl"; const string tab = " "; const string tab_2 = tab + tab; const string tab_3 = tab_2 + tab; @@ -119,6 +120,7 @@ namespace perl { void generateHeader(unique_ptr& streamPtr) { *streamPtr.get() << "#!/usr/bin/perl -w" << endl_2; *streamPtr.get() << sCopyright << endl; + *streamPtr.get() << sImportant << endl_2; *streamPtr.get() << "#usage " << hipify_perl << " [OPTIONS] INPUT_FILE" << endl_2; *streamPtr.get() << "use Getopt::Long;" << endl; *streamPtr.get() << my << "$whitelist = \"\";" << endl;