Make better template pattern for HwHelper class

Change-Id: Ib85ec853e8f5ddcbd8eaf8591754e6551232e0a6
This commit is contained in:
Zdanowicz, Zbigniew
2017-12-21 16:54:19 +01:00
committed by sys_ocldev
parent a9f30a5059
commit 98aee19b15
3 changed files with 9 additions and 9 deletions

View File

@@ -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