From ed7cd9b7e108b6a2f2758ffb654e866a60a10a39 Mon Sep 17 00:00:00 2001 From: agunashe <86270081+agunashe@users.noreply.github.com> Date: Wed, 12 Jan 2022 20:33:58 -0800 Subject: [PATCH] SWDEV-296926 - warning message for hipcc/hipconfig pl deprecation (#2438) Change-Id: I9bd339b1cbeac54b9905a00a71849a441694d0ff [ROCm/hip commit: 9799a0278a4496654714c22663060f570e8c59eb] --- projects/hip/bin/hipcc | 5 +++++ projects/hip/bin/hipconfig | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 7b84067202..4b16ee6c91 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -759,6 +759,11 @@ if ($printCXXFlags) { if ($printLDFlags) { print $HIPLDFLAGS; } + +$warn = "\nPlease note that hipcc/hipconfig perl binaries are deprecated and will be removed in a future release. +hipcc/hipconfig as C++ binaries are available for use as hipcc.bin and hipconfig.bin. \n"; +print "$warn"; + if ($runCmd) { system ("$CMD"); if ($? == -1) { diff --git a/projects/hip/bin/hipconfig b/projects/hip/bin/hipconfig index 5ddb8e9b7d..f6cc60e3f3 100755 --- a/projects/hip/bin/hipconfig +++ b/projects/hip/bin/hipconfig @@ -48,6 +48,7 @@ $ROCM_PATH = $hipvars::ROCM_PATH; $HIP_VERSION = $hipvars::HIP_VERSION; $HSA_PATH = $hipvars::HSA_PATH; + Getopt::Long::Configure ( qw{bundling no_ignore_case}); GetOptions( "help|h" => \$p_help @@ -148,6 +149,9 @@ if ($p_version) { } if (!$printed or $p_full) { + $warn = "Please note that hipcc/hipconfig perl binaries are deprecated and will be removed in a future release. +hipcc/hipconfig as C++ binaries are available for use as hipcc.bin and hipconfig.bin. \n"; + print "$warn"; print "HIP version : ", $HIP_VERSION, "\n\n"; print "== hipconfig\n"; print "HIP_PATH : ", $HIP_PATH, "\n";