P4 to Git Change 1274105 by gandryey@gera-w8 on 2016/05/27 19:02:25
SWDEV-95095 - Bristol Ridge parts report their OpenCL device ID name as "Carrizo" - Detect the ASIC revision for the name swap with Bristo Ridgel instead of Carrizo Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpucompiler.cpp#154 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#548 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#168 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#13 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#2 edit
This commit is contained in:
1 förälder
23ec683890
incheckning
9cbc946a1d
5 files changed
+13
-3
No files matched your search
@@ -17,6 +17,7 @@
|
||||
#include "device/gpu/gpubinary.hpp"
|
||||
#include "device/gpu/gpusettings.hpp"
|
||||
#include "device/gpu/gpublit.hpp"
|
||||
#include "cz_id.h"
|
||||
|
||||
#include "acl.h"
|
||||
|
||||
@@ -455,7 +456,14 @@ NullDevice::fillDeviceInfo(
|
||||
|
||||
info_.platform_ = AMD_PLATFORM;
|
||||
|
||||
::strcpy(info_.name_, hwInfo()->targetName_);
|
||||
if ((calTarget() == CAL_TARGET_CARRIZO) &&
|
||||
ASICREV_IS_CARRIZO_BRISTOL(calAttr.asicRevision)) {
|
||||
const static char* bristol = "Bristol Ridge";
|
||||
::strcpy(info_.name_, bristol);
|
||||
}
|
||||
else {
|
||||
::strcpy(info_.name_, hwInfo()->targetName_);
|
||||
}
|
||||
::strcpy(info_.vendor_, "Advanced Micro Devices, Inc.");
|
||||
::snprintf(info_.driverVersion_, sizeof(info_.driverVersion_) - 1,
|
||||
AMD_BUILD_STRING "%s", " (VM)");
|
||||
|
||||
Reference in new issue
Block a user