mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
Add option to change GRF mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
334802c9ba
commit
16d9000429
@@ -83,7 +83,6 @@ set(L0_RUNTIME_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module/module.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module/module_build_log.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module/module_build_log.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module${BRANCH_DIR_SUFFIX}module_extra_options.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module/module_imp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/module/module_imp.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/printf_handler/printf_handler.cpp
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "level_zero/core/source/module/module_imp.h"
|
||||
|
||||
namespace L0 {
|
||||
|
||||
void ModuleImp::createBuildExtraOptions(std::string &apiOptions, std::string &nternalBuildOptions) {
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "level_zero/core/source/module/module_imp.h"
|
||||
|
||||
#include "shared/source/compiler_interface/compiler_options.h"
|
||||
#include "shared/source/compiler_interface/compiler_warnings/compiler_warnings.h"
|
||||
#include "shared/source/compiler_interface/intermediate_representations.h"
|
||||
#include "shared/source/compiler_interface/linker.h"
|
||||
@@ -35,7 +36,6 @@
|
||||
#include "level_zero/core/source/kernel/kernel.h"
|
||||
#include "level_zero/core/source/module/module_build_log.h"
|
||||
|
||||
#include "compiler_options.h"
|
||||
#include "program_debug_data.h"
|
||||
|
||||
#include <list>
|
||||
@@ -51,6 +51,7 @@ NEO::ConstStringRef greaterThan4GbRequired = "-ze-opt-greater-than-4GB-buffer-re
|
||||
NEO::ConstStringRef hasBufferOffsetArg = "-ze-intel-has-buffer-offset-arg";
|
||||
NEO::ConstStringRef debugKernelEnable = "-ze-kernel-debug-enable";
|
||||
NEO::ConstStringRef profileFlags = "-zet-profile-flags";
|
||||
NEO::ConstStringRef optLargeRegisterFile = "-ze-opt-large-register-file";
|
||||
} // namespace BuildOptions
|
||||
|
||||
ModuleTranslationUnit::ModuleTranslationUnit(L0::Device *device)
|
||||
@@ -680,10 +681,10 @@ void ModuleImp::createBuildOptions(const char *pBuildFlags, std::string &apiOpti
|
||||
moveBuildOption(apiOptions, apiOptions, NEO::CompilerOptions::optDisable, BuildOptions::optDisable);
|
||||
moveBuildOption(internalBuildOptions, apiOptions, NEO::CompilerOptions::greaterThan4gbBuffersRequired, BuildOptions::greaterThan4GbRequired);
|
||||
moveBuildOption(internalBuildOptions, apiOptions, NEO::CompilerOptions::allowZebin, NEO::CompilerOptions::allowZebin);
|
||||
moveBuildOption(internalBuildOptions, apiOptions, NEO::CompilerOptions::largeGrf, BuildOptions::optLargeRegisterFile);
|
||||
|
||||
moveOptLevelOption(apiOptions, apiOptions);
|
||||
moveProfileFlagsOption(apiOptions, apiOptions);
|
||||
createBuildExtraOptions(apiOptions, internalBuildOptions);
|
||||
}
|
||||
if (NEO::ApiSpecificConfig::getBindlessConfiguration()) {
|
||||
NEO::CompilerOptions::concatenateAppend(internalBuildOptions, NEO::CompilerOptions::bindlessMode.str());
|
||||
|
||||
@@ -33,6 +33,8 @@ extern NEO::ConstStringRef greaterThan4GbRequired;
|
||||
extern NEO::ConstStringRef hasBufferOffsetArg;
|
||||
extern NEO::ConstStringRef debugKernelEnable;
|
||||
extern NEO::ConstStringRef profileFlags;
|
||||
extern NEO::ConstStringRef optLargeRegisterFile;
|
||||
|
||||
} // namespace BuildOptions
|
||||
|
||||
struct ModuleTranslationUnit {
|
||||
@@ -112,7 +114,6 @@ struct ModuleImp : public Module {
|
||||
uint32_t getMaxGroupSize() const override { return maxGroupSize; }
|
||||
|
||||
void createBuildOptions(const char *pBuildFlags, std::string &buildOptions, std::string &internalBuildOptions);
|
||||
void createBuildExtraOptions(std::string &buildOptions, std::string &internalBuildOptions);
|
||||
bool moveOptLevelOption(std::string &dstOptionsSet, std::string &srcOptionSet);
|
||||
bool moveProfileFlagsOption(std::string &dstOptionsSet, std::string &srcOptionSet);
|
||||
void updateBuildLog(NEO::Device *neoDevice);
|
||||
|
||||
Reference in New Issue
Block a user