P4 to Git Change 1584842 by asalmanp@asalmanp-ocl-stg on 2018/07/24 16:31:05

SWDEV-132899 - Removing gfx1001 and adding gfx1010 target for Navi10 (gfx10.1)

	ReviewURLBoard = http://ocltc.amd.com/reviews/r/15473/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/libUtils.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#26 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#26 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#158 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#55 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#51 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#46 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#68 edit
This commit is contained in:
foreman
2018-07-24 17:00:55 -04:00
parent 439ddcff00
commit b207b2ae94
5 changed files with 12 additions and 10 deletions
+4 -3
View File
@@ -30,7 +30,7 @@ static const std::string sgfx905 = "AMD:AMDGPU:9:0:5";
static const std::string sgfx906 = "AMD:AMDGPU:9:0:6";
static const std::string sgfx907 = "AMD:AMDGPU:9:0:7";
static const std::string sgfx1000 = "AMD:AMDGPU:10:0:0";
static const std::string sgfx1001 = "AMD:AMDGPU:10:0:1";
static const std::string sgfx1010 = "AMD:AMDGPU:10:1:0";
static const std::string legacyLibName = LINUX_ONLY("lib") "amdocl12cl" LP64_SWITCH(LINUX_SWITCH("32", ""), "64") LINUX_SWITCH(".so", ".dll");
@@ -511,7 +511,7 @@ const std::string &getIsaTypeName(const aclTargetInfo *target)
case 906: return sgfx906;
case 907: return sgfx907;
case 1000: return sgfx1000;
case 1001: return sgfx1001;
case 1010: return sgfx1010;
}
}
@@ -586,7 +586,8 @@ int getIsaType(const aclTargetInfo *target)
case FAMILY_NV:
switch (Mapping.chip_enum) {
default: return 1000;
case NV_NAVI10_P_A0: return Mapping.xnack_supported ? 1001 : 1000;
case NV_NAVI10_LITE_P_A0: return 1000;
case NV_NAVI10_P_A0: return 1010;
}
}
}