Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix various typos. #723

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Usage: ocloc multi <file_name>
'-file <filename> -device <device_type> [compile_options]'.
See 'ocloc compile --help' for available compile_options.
Results of subsequent compilations will be dumped into
a directory with name indentical file_name's base name.
a directory with name identical file_name's base name.

-output_file_list Name of optional file containing
paths to outputs .bin files
Expand Down
4 changes: 2 additions & 2 deletions shared/offline_compiler/source/multi_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int MultiCommand::singleBuild(const std::vector<std::string> &args) {
if (retVal == OCLOC_SUCCESS) {
outputFile << getCurrentDirectoryOwn(outDirForBuilds) + outFileName;
} else {
outputFile << "Unsuccesful build";
outputFile << "Unsuccessful build";
}
outputFile << '\n';

Expand Down Expand Up @@ -167,7 +167,7 @@ Usage: ocloc multi <file_name>
'-file <filename> -device <device_type> [compile_options]'.
See 'ocloc compile --help' for available compile_options.
Results of subsequent compilations will be dumped into
a directory with name indentical file_name's base name.
a directory with name identical file_name's base name.

-output_file_list Name of optional file containing
paths to outputs .bin files
Expand Down
4 changes: 2 additions & 2 deletions shared/source/compiler_interface/linker.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -567,7 +567,7 @@ std::string constructRelocationsDebugMessage(const Linker::RelocatedSymbolsMap &
return "";
}
std::stringstream stream;
stream << "Relocations debug informations :\n";
stream << "Relocations debug information :\n";
for (const auto &symbol : relocatedSymbols) {
stream << " * \"" << symbol.first << "\" [" << symbol.second.symbol.size << " bytes]";
stream << " " << asString(symbol.second.symbol.segment) << "_SEGMENT@" << symbol.second.symbol.offset;
Expand Down
4 changes: 2 additions & 2 deletions shared/source/compiler_interface/linker.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -45,7 +45,7 @@ enum class LinkingStatus : uint32_t {
inline const char *asString(SegmentType segment) {
switch (segment) {
default:
return "UNKOWN";
return "UNKNOWN";
case SegmentType::globalConstants:
return "GLOBAL_CONSTANTS";
case SegmentType::globalVariables:
Expand Down
6 changes: 3 additions & 3 deletions shared/test/unit_test/compiler_interface/linker_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -32,7 +32,7 @@
#include <string>

TEST(SegmentTypeTests, givenSegmentTypeWhenAsStringIsCalledThenProperRepresentationIsReturned) {
EXPECT_STREQ("UNKOWN", NEO::asString(NEO::SegmentType::unknown));
EXPECT_STREQ("UNKNOWN", NEO::asString(NEO::SegmentType::unknown));
EXPECT_STREQ("GLOBAL_CONSTANTS", NEO::asString(NEO::SegmentType::globalConstants));
EXPECT_STREQ("GLOBAL_VARIABLES", NEO::asString(NEO::SegmentType::globalVariables));
EXPECT_STREQ("INSTRUCTIONS", NEO::asString(NEO::SegmentType::instructions));
Expand Down Expand Up @@ -1763,7 +1763,7 @@ TEST(RelocationsDebugMessageTests, givenListOfRelocatedSymbolsThenReturnProperDe
auto message = NEO::constructRelocationsDebugMessage(symbols);

std::stringstream expected;
expected << "Relocations debug informations :\n";
expected << "Relocations debug information :\n";
for (const auto &symbol : symbols) {
if (symbol.first == "foo") {
expected << " * \"foo\" [1024 bytes] INSTRUCTIONS_SEGMENT@64 -> 0x1000 GPUVA\n";
Expand Down