P4 to Git Change 1279182 by asalmanp@asalmanp-ocl-stg-pal on 2016/06/13 15:10:34
SWDEV-79278 - [OpenCL][PAL][GFXIP9 Bring up] OCL GFXIP9 general development.Adding support for ASIC detection based on gfxLevel on PAL. For GFXIP9+, the Asic revision on PAL is Unknown and gfxLevel should be used for ASIC detection. ReviewBoardURL = http://ocltc.amd.com/reviews/r/10616/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#4 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#4 edit
Этот коммит содержится в:
@@ -739,10 +739,9 @@ bool ORCAHSALoaderContext::IsaSupportedByAgent(hsa_agent_t agent, hsa_isa_t isa)
|
||||
return false;
|
||||
}
|
||||
case gfx900:
|
||||
switch (program_->dev().properties().revision) {
|
||||
case 0:
|
||||
/* case Pal::AsicRevision::Greenland:
|
||||
return isa.handle == gfx900 || isa.handle == gfx901;*/
|
||||
switch (program_->dev().properties().gfxLevel) {
|
||||
case Pal::GfxIpLevel::GfxIp9:
|
||||
return isa.handle == gfx900 || isa.handle == gfx901;
|
||||
default:
|
||||
assert(0);
|
||||
return false;
|
||||
|
||||
Ссылка в новой задаче
Block a user