mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Remove not needed argument from appendExtraInternalOptions function
Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
06b436f120
commit
7d18b845fa
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2021 Intel Corporation
|
* Copyright (C) 2021-2022 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -20,7 +20,7 @@ RKLTEST_F(MockOfflineCompilerRklTests, givenRklWhenAppendExtraInternalOptionsThe
|
|||||||
mockOfflineCompiler.deviceName = "rkl";
|
mockOfflineCompiler.deviceName = "rkl";
|
||||||
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
||||||
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
||||||
mockOfflineCompiler.appendExtraInternalOptions(mockOfflineCompiler.hwInfo, internalOptions);
|
mockOfflineCompiler.appendExtraInternalOptions(internalOptions);
|
||||||
size_t found = internalOptions.find(NEO::CompilerOptions::forceEmuInt32DivRemSP.data());
|
size_t found = internalOptions.find(NEO::CompilerOptions::forceEmuInt32DivRemSP.data());
|
||||||
EXPECT_NE(std::string::npos, found);
|
EXPECT_NE(std::string::npos, found);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2021 Intel Corporation
|
* Copyright (C) 2021-2022 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -44,7 +44,7 @@ SKLTEST_F(MockOfflineCompilerSklTests, givenSklWhenAppendExtraInternalOptionsThe
|
|||||||
mockOfflineCompiler.deviceName = "skl";
|
mockOfflineCompiler.deviceName = "skl";
|
||||||
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
||||||
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
||||||
mockOfflineCompiler.appendExtraInternalOptions(mockOfflineCompiler.hwInfo, internalOptions);
|
mockOfflineCompiler.appendExtraInternalOptions(internalOptions);
|
||||||
size_t found = internalOptions.find(NEO::CompilerOptions::forceEmuInt32DivRemSP.data());
|
size_t found = internalOptions.find(NEO::CompilerOptions::forceEmuInt32DivRemSP.data());
|
||||||
EXPECT_EQ(std::string::npos, found);
|
EXPECT_EQ(std::string::npos, found);
|
||||||
}
|
}
|
||||||
@@ -55,7 +55,7 @@ SKLTEST_F(MockOfflineCompilerSklTests, givenSklWhenAppendExtraInternalOptionsThe
|
|||||||
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
mockOfflineCompiler.initHardwareInfo(mockOfflineCompiler.deviceName);
|
||||||
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
std::string internalOptions = mockOfflineCompiler.internalOptions;
|
||||||
mockOfflineCompiler.forceStatelessToStatefulOptimization = false;
|
mockOfflineCompiler.forceStatelessToStatefulOptimization = false;
|
||||||
mockOfflineCompiler.appendExtraInternalOptions(mockOfflineCompiler.hwInfo, internalOptions);
|
mockOfflineCompiler.appendExtraInternalOptions(internalOptions);
|
||||||
size_t found = internalOptions.find(NEO::CompilerOptions::greaterThan4gbBuffersRequired.data());
|
size_t found = internalOptions.find(NEO::CompilerOptions::greaterThan4gbBuffersRequired.data());
|
||||||
EXPECT_EQ(std::string::npos, found);
|
EXPECT_EQ(std::string::npos, found);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2021 Intel Corporation
|
* Copyright (C) 2018-2022 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -1576,7 +1576,7 @@ struct OfflineCompilerStatelessToStatefulTests : public ::testing::Test {
|
|||||||
for (const auto &[forceStatelessToStatefulOptimization, containsGreaterThan4gbBuffersRequired] : testParams) {
|
for (const auto &[forceStatelessToStatefulOptimization, containsGreaterThan4gbBuffersRequired] : testParams) {
|
||||||
auto internalOptions = mockOfflineCompiler->internalOptions;
|
auto internalOptions = mockOfflineCompiler->internalOptions;
|
||||||
mockOfflineCompiler->forceStatelessToStatefulOptimization = forceStatelessToStatefulOptimization;
|
mockOfflineCompiler->forceStatelessToStatefulOptimization = forceStatelessToStatefulOptimization;
|
||||||
mockOfflineCompiler->appendExtraInternalOptions(mockOfflineCompiler->hwInfo, internalOptions);
|
mockOfflineCompiler->appendExtraInternalOptions(internalOptions);
|
||||||
auto found = internalOptions.find(NEO::CompilerOptions::greaterThan4gbBuffersRequired.data());
|
auto found = internalOptions.find(NEO::CompilerOptions::greaterThan4gbBuffersRequired.data());
|
||||||
|
|
||||||
if (containsGreaterThan4gbBuffersRequired) {
|
if (containsGreaterThan4gbBuffersRequired) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2021 Intel Corporation
|
* Copyright (C) 2018-2022 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -488,7 +488,7 @@ int OfflineCompiler::initialize(size_t numArgs, const std::vector<std::string> &
|
|||||||
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::enableImageSupport);
|
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::enableImageSupport);
|
||||||
} else {
|
} else {
|
||||||
appendExtensionsToInternalOptions(hwInfo, options, internalOptions);
|
appendExtensionsToInternalOptions(hwInfo, options, internalOptions);
|
||||||
appendExtraInternalOptions(hwInfo, internalOptions);
|
appendExtraInternalOptions(internalOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
parseDebugSettings();
|
parseDebugSettings();
|
||||||
@@ -769,7 +769,7 @@ void OfflineCompiler::setStatelessToStatefullBufferOffsetFlag() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OfflineCompiler::appendExtraInternalOptions(const HardwareInfo &hwInfo, std::string &internalOptions) {
|
void OfflineCompiler::appendExtraInternalOptions(std::string &internalOptions) {
|
||||||
const auto &compilerHwInfoConfig = *CompilerHwInfoConfig::get(hwInfo.platform.eProductFamily);
|
const auto &compilerHwInfoConfig = *CompilerHwInfoConfig::get(hwInfo.platform.eProductFamily);
|
||||||
if (compilerHwInfoConfig.isForceToStatelessRequired() && !forceStatelessToStatefulOptimization) {
|
if (compilerHwInfoConfig.isForceToStatelessRequired() && !forceStatelessToStatefulOptimization) {
|
||||||
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::greaterThan4gbBuffersRequired);
|
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::greaterThan4gbBuffersRequired);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2021 Intel Corporation
|
* Copyright (C) 2018-2022 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -105,7 +105,7 @@ class OfflineCompiler {
|
|||||||
int initialize(size_t numArgs, const std::vector<std::string> &allArgs, bool dumpFiles);
|
int initialize(size_t numArgs, const std::vector<std::string> &allArgs, bool dumpFiles);
|
||||||
int parseCommandLine(size_t numArgs, const std::vector<std::string> &allArgs);
|
int parseCommandLine(size_t numArgs, const std::vector<std::string> &allArgs);
|
||||||
void setStatelessToStatefullBufferOffsetFlag();
|
void setStatelessToStatefullBufferOffsetFlag();
|
||||||
void appendExtraInternalOptions(const HardwareInfo &hwInfo, std::string &internalOptions);
|
void appendExtraInternalOptions(std::string &internalOptions);
|
||||||
void parseDebugSettings();
|
void parseDebugSettings();
|
||||||
void storeBinary(char *&pDst, size_t &dstSize, const void *pSrc, const size_t srcSize);
|
void storeBinary(char *&pDst, size_t &dstSize, const void *pSrc, const size_t srcSize);
|
||||||
MOCKABLE_VIRTUAL int buildSourceCode();
|
MOCKABLE_VIRTUAL int buildSourceCode();
|
||||||
|
|||||||
Reference in New Issue
Block a user