mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Pass revision ID to ocloc
Related-To: NEO-4004 Change-Id: I3586782f4996e518fe69a9b6e2a2ed22ad19258b Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
caba50046b
commit
05990b628b
@@ -238,6 +238,7 @@ int OfflineCompiler::getHardwareInfo(const char *pDeviceName) {
|
||||
if (hardwarePrefix[productId] && (0 == strcmp(pDeviceName, hardwarePrefix[productId]))) {
|
||||
if (hardwareInfoTable[productId]) {
|
||||
hwInfo = *hardwareInfoTable[productId];
|
||||
hwInfo.platform.usRevId = revisionId;
|
||||
hardwareInfoSetup[hwInfo.platform.eProductFamily](&hwInfo, true, 0x0);
|
||||
familyNameWithType.clear();
|
||||
familyNameWithType.append(familyName[hwInfo.platform.eRenderCoreFamily]);
|
||||
@@ -524,6 +525,9 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
|
||||
} else if ("--help" == currArg) {
|
||||
printUsage();
|
||||
retVal = PRINT_USAGE;
|
||||
} else if (("-revision_id" == currArg) && hasMoreArgs) {
|
||||
revisionId = std::stoi(argv[argIndex + 1]);
|
||||
argIndex++;
|
||||
} else {
|
||||
argHelper->printf("Invalid option (arg %d): %s\n", argIndex, argv[argIndex].c_str());
|
||||
retVal = INVALID_COMMAND_LINE;
|
||||
|
||||
@@ -137,6 +137,7 @@ class OfflineCompiler {
|
||||
std::unique_ptr<OsLibrary> igcLib = nullptr;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> igcMain = nullptr;
|
||||
CIF::RAII::UPtr_t<IGC::IgcOclDeviceCtxTagOCL> igcDeviceCtx = nullptr;
|
||||
int revisionId = REVISION_A0;
|
||||
|
||||
std::unique_ptr<OsLibrary> fclLib = nullptr;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> fclMain = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user