P4 to Git Change 1744867 by asalmanp@asalmanp-ocl-stg on 2019/02/15 18:26:24

SWDEV-132899 - Adding support for Navi14/Navi12.
	ReviewRequestURL = http://ocltc.amd.com/reviews/r/16708/diff/1/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#188 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbedefs#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#48 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#68 edit
This commit is contained in:
foreman
2019-02-15 18:52:53 -05:00
والد 5ab68dc87b
کامیت 986ca859ad
3فایلهای تغییر یافته به همراه16 افزوده شده و 0 حذف شده
@@ -675,6 +675,14 @@ CALGSLDevice::SetupContext(int32 &asic_id)
m_target = CAL_TARGET_NAVI10;
m_elfmachine = ED_ATI_CAL_MACHINE_NAVI10_ISA;
break;
case GSL_ATIASIC_ID_NAVI14:
m_target = CAL_TARGET_NAVI10;
m_elfmachine = ED_ATI_CAL_MACHINE_NAVI10_ISA;
break;
case GSL_ATIASIC_ID_NAVI12:
m_target = CAL_TARGET_NAVI10;
m_elfmachine = ED_ATI_CAL_MACHINE_NAVI10_ISA;
break;
default:
// 6XX is not supported
@@ -182,6 +182,13 @@ static const AMDDeviceInfo Gfx9PlusSubDeviceInfo[] = {
/* Navi10 XNACK */{"gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, true},
/* Navi10Lite */{"gfx1000", "gfx1000","gfx1000", 4, 16, 1, 256, 64 * Ki, 32, 1000, 1000, false},
/* Navi10Lite XNACK */{"gfx1000", "gfx1000", "gfx1000", 4, 16, 1, 256, 64 * Ki, 32, 1000, 1000, true},
/* Navi12 */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, false },
/* Navi12 XNACK */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, true },
/* Navi12Lite */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, false },
/* Navi12Lite XNACK */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, true },
/* Navi14 */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, false },
/* Navi14 XNACK */{ "gfx1010", "gfx1010", "gfx1010", 4, 16, 1, 256, 64 * Ki, 32, 1010, 1010, true },
};
// Supported OpenCL versions
@@ -186,6 +186,7 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
assert(0 && "Unknown GfxIP type!");
return false;
}
case Pal::AsicRevision::Navi12:
case Pal::AsicRevision::Navi14:
case Pal::AsicRevision::Navi10:
case Pal::AsicRevision::Navi10Lite: