From 9008a3ec56397ccf564f8c2fff4c3de686fe982b Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Mon, 28 May 2018 10:46:23 -0400 Subject: [PATCH] Drop --amdgpu-target= options for hip-clang They are replaced by --cuda-gpu-arch= options elsewhere --- bin/hipcc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/hipcc b/bin/hipcc index c1446d0f7d..7fafc30053 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -303,6 +303,10 @@ foreach $arg (@ARGV) $default_amdgpu_target = 0; } + # hip-clang does not accept --amdgpu-target= options. + if (($arg =~ /--amdgpu-target=/) and $HIP_PLATFORM eq 'clang' ) { + $swallowArg = 1; + } if(($trimarg eq '-stdlib=libstdc++') and ($setStdLib eq 0)) {