mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
Adding support for kernel disasm using IGA
Change-Id: Ic75540c9b42913f5d12d66438cc4e6dcc39ceb98
This commit is contained in:
committed by
sys_ocldev
parent
79e78e18c4
commit
2f42f332d8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,6 +7,12 @@
|
||||
|
||||
#include "helper.h"
|
||||
|
||||
#include "runtime/helpers/hw_info.h"
|
||||
#include "runtime/os_interface/os_inc_base.h"
|
||||
#include "runtime/os_interface/os_library.h"
|
||||
|
||||
#include "igfxfmid.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
|
||||
@@ -66,3 +72,12 @@ size_t findPos(const std::vector<std::string> &lines, const std::string &whatToF
|
||||
}
|
||||
return lines.size();
|
||||
}
|
||||
|
||||
PRODUCT_FAMILY getProductFamilyFromDeviceName(const std::string &deviceName) {
|
||||
for (unsigned int productId = 0; productId < IGFX_MAX_PRODUCT; ++productId) {
|
||||
if (deviceName == NEO::hardwarePrefix[productId]) {
|
||||
return static_cast<PRODUCT_FAMILY>(productId);
|
||||
}
|
||||
}
|
||||
return IGFX_UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user