25 lines
606 B
C++
25 lines
606 B
C++
/*
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/offline_compiler/source/offline_compiler.h"
|
|
#include "shared/source/os_interface/os_library.h"
|
|
|
|
#include "compiler_options.h"
|
|
|
|
namespace NEO {
|
|
void OfflineCompiler::resolveExtraSettings() {
|
|
if (deviceName == "rkl") {
|
|
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::forceEmuInt32DivRemSP);
|
|
}
|
|
}
|
|
|
|
bool OfflineCompiler::isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) {
|
|
return hwInfo.featureTable.ftrGpGpuMidThreadLevelPreempt;
|
|
}
|
|
|
|
} // namespace NEO
|