From 0a97bed2bdfca03596bcf508676b0aa2d6a298c0 Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Thu, 6 Feb 2020 16:50:09 -0500 Subject: [PATCH] [hipcc] Skip warning on `gfx000`. - The known target checking should skip `gfx000` as well as it won't be used in real compilation command formation. The avoid generating annoying warning on `gfx000`. [ROCm/clr commit: 59bd608bfe6909c94403e31d03fb3d97bebd37d8] --- projects/clr/hipamd/bin/hipcc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index 2f22b07f5f..1bacef953c 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/bin/hipcc @@ -664,11 +664,11 @@ if($HIP_PLATFORM eq "hcc" or $HIP_PLATFORM eq "clang"){ if ($HIP_PLATFORM eq 'clang') { $HIPCXXFLAGS .= $GPU_ARCH_ARG; } - } - # If the specified target is not in the list of known target names, emit a warning. - if (grep(/$val/, @knownTargets) eq 0) { - print "Warning: The specified HIP target: $val is unknown. Correct compilation is not guaranteed.\n"; + # If the specified target is not in the list of known target names, emit a warning. + if (grep(/$val/, @knownTargets) eq 0) { + print "Warning: The specified HIP target: $val is unknown. Correct compilation is not guaranteed.\n"; + } } }