2019-09-18 02:28:35 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2019-09-18 02:28:35 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-27 23:17:08 +08:00
|
|
|
#include "shared/offline_compiler/source/offline_compiler.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/os_library.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2019-12-19 21:26:29 +08:00
|
|
|
#include "compiler_options.h"
|
2019-09-18 02:28:35 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
2019-12-19 21:26:29 +08:00
|
|
|
void OfflineCompiler::resolveExtraSettings() {
|
2020-09-03 18:24:03 +08:00
|
|
|
if (deviceName == "rkl") {
|
2019-12-19 21:26:29 +08:00
|
|
|
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::forceEmuInt32DivRemSP);
|
|
|
|
}
|
|
|
|
}
|
2021-09-08 21:38:48 +08:00
|
|
|
|
|
|
|
bool OfflineCompiler::isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) {
|
|
|
|
return hwInfo.featureTable.ftrGpGpuMidThreadLevelPreempt;
|
|
|
|
}
|
|
|
|
|
2019-09-18 02:28:35 +08:00
|
|
|
} // namespace NEO
|