From 134c92d3ef490de86fd85786d1ce9abb3114b863 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 20 Oct 2016 12:23:45 -0400 Subject: [PATCH] P4 to Git Change 1329242 by scharupa@scharupa_temp on 2016/10/20 12:06:11 SWDEV-105122 - Changing Baffin, Ellesmere and Lexa ISAtype, it has to be 803 Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#21 edit --- rocclr/compiler/lib/utils/v0_8/libUtils.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/rocclr/compiler/lib/utils/v0_8/libUtils.cpp b/rocclr/compiler/lib/utils/v0_8/libUtils.cpp index dff9bee690..42a45ff36a 100644 --- a/rocclr/compiler/lib/utils/v0_8/libUtils.cpp +++ b/rocclr/compiler/lib/utils/v0_8/libUtils.cpp @@ -559,18 +559,20 @@ int getIsaType(const aclTargetInfo *target) default: return 800; case VI_TONGA_P_A0: #if defined(BUILD_HSA_TARGET) - return 802; // Special case - Boltzmann Tonga + return 802; // Special case - Boltzmann Tonga // Otherwise fall through #endif case VI_ICELAND_M_A0: return 800; case VI_FIJI_P_A0: -#if defined(BUILD_HSA_TARGET) - return 803; // Special case - Boltzmann Fiji - // Otherwise fall through -#endif - case VI_ELLESMERE_P_A0: case VI_BAFFIN_M_A0: - case VI_LEXA_V_A0: return 804; + case VI_ELLESMERE_P_A0: + case VI_LEXA_V_A0: +#if defined(BUILD_HSA_TARGET) + return 803; // Special case - Boltzmann FIJI, BAFFIN, ELLESMERE, LEXA + // Otherwise fall through +#else + return 804; +#endif } case FAMILY_CZ: switch (Mapping.chip_enum) { @@ -583,7 +585,7 @@ int getIsaType(const aclTargetInfo *target) default: return 900; case AI_GREENLAND_P_A0: return 900; } - } + } } std::string getFeatureString(const aclTargetInfo& target, amd::option::Options *OptionsObj)