@@ -656,6 +656,10 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
656
656
// match arg with the starting of targetOpt
657
657
string pattern = " ^" + targetOpt + " .*" ;
658
658
if (hipBinUtilPtr_->stringRegexMatch (arg, pattern)) {
659
+ if (targetOpt == " --amdgpu-target=" ) {
660
+ cout << " Warning: The --amdgpu-target option has been deprecated and will be removed in the future."
661
+ << " Use --offload-arch instead.\n " ;
662
+ }
659
663
// If targets string is not empty,
660
664
// add a comma before adding new target option value.
661
665
targetsStr.size () >0 ? targetsStr += " ," : targetsStr += " " ;
@@ -703,6 +707,8 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
703
707
}
704
708
if (hipBinUtilPtr_->substringPresent (
705
709
arg, " --amdhsa-code-object-version=" )) {
710
+ cout << " Warning: The --amdhsa-code-object-version option has been deprecated and will be removed in the future."
711
+ << " Use -mllvm -mcode-object-version instead.\n " ;
706
712
arg = hipBinUtilPtr_->replaceStr (
707
713
arg, " --amdhsa-code-object-version=" , " " );
708
714
hsacoVersion = arg;
@@ -915,12 +921,11 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
915
921
// # Process HIPCC options here:
916
922
if (hipBinUtilPtr_->stringRegexMatch (arg, " ^--hipcc.*" )) {
917
923
swallowArg = 1 ;
918
- // if $arg eq "--hipcc_profile") { # Example argument here, hipcc
919
- //
920
- // }
921
924
if (arg == " --hipcc-func-supp" ) {
925
+ cout << " Warning: The --hipcc-func-supp option has been deprecated and will be removed in the future.\n " ;
922
926
funcSupp = 1 ;
923
927
} else if (arg == " --hipcc-no-func-supp" ) {
928
+ cout << " Warning: The --hipcc-no-func-supp option has been deprecated and will be removed in the future.\n " ;
924
929
funcSupp = 0 ;
925
930
}
926
931
} else {
0 commit comments