P4 to Git Change 1348476 by lmoriche@lmoriche_opencl_dev on 2016/12/01 21:48:08

SWDEV-79278 - [OpenCL][GFXIP9 Bring up] Add the Vega10 DeviceInfo entry and the gfx90X control functions.

Affected files ...

... //depot/stg/opencl/drivers/opencl/library/build/Makefile.library#59 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#29 edit
This commit is contained in:
foreman
2016-12-01 21:55:50 -05:00
parent c1c625fc49
commit d4cbb3a801
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -29,6 +29,7 @@
#include "vi_id.h"
#include "cz_id.h"
#include "ci_id.h"
#include "ai_id.h"
#include <cstring>
#include <fstream>
#include <sstream>
@@ -147,6 +148,8 @@ static HsaDeviceId getHsaDeviceId(hsa_agent_t device, uint32_t& pci_id) {
case DEVICE_ID_VI_BAFFIN_M_67E7:
case DEVICE_ID_VI_BAFFIN_M_67E9:
return HSA_BAFFIN_ID;
case DEVICE_ID_AI_GREENLAND_P_687F:
return HSA_VEGA10_ID;
default:
return HSA_INVALID_DEVICE_ID;
}