P4 to Git Change 1585929 by asalmanp@asalmanp-ocl-stg on 2018/07/26 12:26:11

SWDEV-132899 - [OCL][GFX10] removing gfx1001 (target for Navi10 Lite if xnack is enabled)
	 starting from gfx10, we will use the same target (e.g., gfx1000) no matter if xnack is enabled/disbaled and we pass "-xnack" option to Finalizer if xnack is enabled on the target
	ReviewURLBoard = http://ocltc.amd.com/reviews/r/15492/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#99 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#64 edit


[ROCm/clr commit: 9ddfeef105]
Этот коммит содержится в:
foreman
2018-07-26 13:08:44 -04:00
родитель 90bb6fdaa8
Коммит 4fcd18fd5c
3 изменённых файлов: 8 добавлений и 4 удалений
+1 -1
Просмотреть файл
@@ -174,7 +174,7 @@ static const AMDDeviceInfo Gfx9PlusSubDeviceInfo[] = {
/* Raven2 XNACK */{ LIGHTNING_SWITCH("gfx902","gfx903"), LIGHTNING_SWITCH("gfx902","gfx903"),
4, 16, 1, 256, 64 * Ki, 32, LIGHTNING_SWITCH(902, 903), true},
/* Navi10 */{ "", "", 4, 16, 1, 256, 64 * Ki, 32, 1000, false},
/* Navi10 XNACK */{ "", "", 4, 16, 1, 256, 64 * Ki, 32, 1001, true},
/* Navi10 XNACK */{ "", "", 4, 16, 1, 256, 64 * Ki, 32, 1000, true},
};
// Supported OpenCL versions
-1
Просмотреть файл
@@ -191,7 +191,6 @@ bool NullDevice::init() {
case 906:
revision = Pal::AsicRevision::Vega20;
break;
case 1001:
case 1000:
revision = Pal::AsicRevision::Navi10;
break;
+7 -2
Просмотреть файл
@@ -600,8 +600,13 @@ bool HSAILProgram::linkImpl(amd::option::Options* options) {
if (dev().settings().svmFineGrainSystem_) {
fin_options.append(" -sc-xnack-iommu");
}
if (dev().settings().gfx10Plus_ && GPU_FORCE_WAVE_SIZE_32) {
fin_options.append(" -force-wave-size-32");
if (dev().settings().gfx10Plus_) {
if (GPU_FORCE_WAVE_SIZE_32) {
fin_options.append(" -force-wave-size-32");
}
if (dev().hwInfo()->xnackEnabled_) {
fin_options.append(" -xnack");
}
}
errorCode = aclCompile(dev().compiler(), binaryElf_, fin_options.c_str(), ACL_TYPE_CG,