mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Compile kernels per platform type (core/lp)
compiled kernels are in (binary dir)/(family name with type) folder Change-Id: Ied1827ab7f4ecc5c1de4c3535b1c0ba3b5cd86ee
This commit is contained in:
committed by
sys_ocldev
parent
34ff5852eb
commit
abbc0a5471
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -53,4 +53,11 @@ const HardwareInfo unknownHardware = {
|
||||
&emptyWaTable,
|
||||
&unknownSysInfo,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, PreemptionMode::Disabled, {false, false}, nullptr}};
|
||||
|
||||
const char *getPlatformType(const HardwareInfo &hwInfo) {
|
||||
if (hwInfo.capabilityTable.isBigCore) {
|
||||
return "core";
|
||||
}
|
||||
return "lp";
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
||||
@@ -72,6 +72,7 @@ struct RuntimeCapabilityTable {
|
||||
EngineType defaultEngineType;
|
||||
|
||||
size_t requiredPreemptionSurfaceSize;
|
||||
bool isBigCore;
|
||||
};
|
||||
|
||||
struct HardwareCapabilities {
|
||||
@@ -113,4 +114,6 @@ struct EnableGfxFamilyHw {
|
||||
}
|
||||
};
|
||||
|
||||
const char *getPlatformType(const HardwareInfo &hwInfo);
|
||||
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user