mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Make better template pattern for HwHelper class
Change-Id: Ib85ec853e8f5ddcbd8eaf8591754e6551232e0a6
This commit is contained in:
committed by
sys_ocldev
parent
a9f30a5059
commit
98aee19b15
@@ -20,14 +20,11 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <runtime/helpers/hw_helper.h>
|
||||
#include "runtime/helpers/hw_helper.h"
|
||||
#include "runtime/helpers/hw_helper.inl"
|
||||
|
||||
namespace OCLRT {
|
||||
typedef BDWFamily Family;
|
||||
// Explicitly instantiate HwHelperHw for this device family
|
||||
template class HwHelperHw<Family>;
|
||||
|
||||
#include "runtime/helpers/hw_helper.inl"
|
||||
|
||||
template <>
|
||||
size_t HwHelperHw<Family>::getMaxBarrierRegisterPerSlice() const {
|
||||
@@ -39,4 +36,5 @@ bool HwHelperHw<Family>::setupPreemptionRegisters(HardwareInfo *pHwInfo, bool en
|
||||
return false;
|
||||
}
|
||||
|
||||
template class HwHelperHw<Family>;
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user