From f32980847fb29edf8fcea31fb52894b035a67591 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 14 Mar 2017 14:34:25 +0530 Subject: [PATCH] default to gfx803 instead of fatbin if no arch specified Change-Id: I83d56c6ede11c356d383b09d7eb3a5f08c8d8c84 --- hipamd/bin/hipcc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 7179517f7b..d2822fd0da 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -349,6 +349,10 @@ foreach my $target (split(/,/, $ENV{HCC_AMDGPU_TARGET})) $target_gfx900 = 1; } } +if ($target_gfx701 eq 0 and $target_gfx801 eq 0 and $target_gfx802 eq 0 and $target_gfx803 eq 0 and $target_gfx900 eq 0) +{ + $target_gfx803 = 1; +} if($HIP_PLATFORM eq "hcc"){ @@ -376,12 +380,6 @@ if($HIP_PLATFORM eq "hcc"){ $HIPLDFLAGS .= " --amdgpu-target=gfx900"; $HIPCXXFLAGS .= " -D__HIP_ARCH_GFX900__=1 "; } - if ($target_gfx701 eq 0 and $target_gfx801 eq 0 and $target_gfx802 eq 0 and $target_gfx803 eq 0 and $target_gfx900 eq 0) - { - $HIPLDFLAGS .= " --amdgpu-target=gfx701 --amdgpu-target=gfx801 --amdgpu-target=gfx802 --amdgpu-target=gfx803 --amdgpu-target=gfx900"; - $ENV{HCC_EXTRA_LIBRARIES_GFX803}="$HIP_PATH/lib/hip_hc_gfx803.ll\n"; - } - } if ($hasC and $HIP_PLATFORM eq 'nvcc') {