SWDEV-268864 - Remove duplicatation of isa related information
Remove targetId_, gfxipMajor_, gfxipMinor_ and gfxipStepping_ from device::Info as they are now available in device::Isa. Change-Id: I381b1d4798ebf50655740e004a01ac7f86dbf668
This commit is contained in:
1 parent
c0730b69d5
commit
c2308216dd
4 files changed
-24
No files matched your search
@@ -133,10 +133,6 @@ bool NullDevice::create(const amd::Isa &isa) {
|
||||
|
||||
// Report the device name
|
||||
::strncpy(info_.name_, isa.targetId(), sizeof(info_.name_) - 1);
|
||||
info_.gfxipMajor_ = isa.versionMajor();
|
||||
info_.gfxipMinor_ = isa.versionMinor();
|
||||
info_.gfxipStepping_ = isa.versionStepping();
|
||||
::strncpy(info_.targetId_, isa.isaName().c_str(), sizeof(info_.targetId_) - 1);
|
||||
info_.extensions_ = getExtensionString();
|
||||
info_.maxWorkGroupSize_ = hsaSettings->maxWorkGroupSize_;
|
||||
::strncpy(info_.vendor_, "Advanced Micro Devices, Inc.", sizeof(info_.vendor_) - 1);
|
||||
@@ -1057,10 +1053,6 @@ bool Device::populateOCLDeviceConstants() {
|
||||
info_.available_ = true;
|
||||
|
||||
::strncpy(info_.name_, isa().targetId(), sizeof(info_.name_) - 1);
|
||||
info_.gfxipMajor_ = isa().versionMajor();
|
||||
info_.gfxipMinor_ = isa().versionMinor();
|
||||
info_.gfxipStepping_ = isa().versionStepping();
|
||||
::strncpy(info_.targetId_, isa().isaName().c_str(), sizeof(info_.targetId_) - 1);
|
||||
char device_name[64] = {0};
|
||||
if (HSA_STATUS_SUCCESS == hsa_agent_get_info(_bkendDevice,
|
||||
(hsa_agent_info_t)HSA_AMD_AGENT_INFO_PRODUCT_NAME,
|
||||
|
||||
Reference in new issue
Block a user