Skip to content

Commit ad312ce

Browse files
authored
Fixed typos in comments and README (uxlfoundation#76)
1 parent 64cf97f commit ad312ce

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Open an Request For Comment (RFC) issue when contributing new interfaces. In the
4040

4141
* The definition of the function including the interface and semantics, and how this interface will be extendable for different HW implementations.
4242

43-
* What exisitng libraries have implementation of this function and can be used under the oneMKL interface.
43+
* What existing libraries have implementation of this function and can be used under the oneMKL interface.
4444

4545

4646
## Bug Reporting
@@ -322,4 +322,4 @@ for (int i = 0; i < loop_size; i++) ...;
322322

323323
oneMKL uses GoogleTest for functional testing.
324324

325-
Be sure to extend the existing tests when fixing an issue, adding a new interface or new implementation under exisitng interfaces.
325+
Be sure to extend the existing tests when fixing an issue, adding a new interface or new implementation under existing interfaces.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ There are two oneMKL selector layer implementations:
5656
Example of app.cpp with run-time dispatching:
5757

5858
```cpp
59-
include "oneapi/mkl.hpp"
59+
#include "oneapi/mkl.hpp"
6060

6161
...
6262
cpu_dev = cl::sycl::device(cl::sycl::cpu_selector());
@@ -80,7 +80,7 @@ $> clang++ -fsycl app.o –L$ONEMKL/lib –lonemkl
8080
Example of app.cpp with compile-time dispatching:
8181

8282
```cpp
83-
include "oneapi/mkl.hpp"
83+
#include "oneapi/mkl.hpp"
8484

8585
...
8686
cpu_dev = cl::sycl::device(cl::sycl::cpu_selector());
@@ -482,7 +482,7 @@ Then:
482482
# Inside <path to onemkl>
483483
mkdir build && cd build
484484
export CXX=<path_to_dpcpp_compiler>/bin/dpcpp;
485-
cmake .. [-DMKL_ROOT=<mkl_install_prefix>] \ # required only if enviroment variable MKLROOT is not set
485+
cmake .. [-DMKL_ROOT=<mkl_install_prefix>] \ # required only if environment variable MKLROOT is not set
486486
[-DREF_BLAS_ROOT=<reference_blas_install_prefix>] # required only for testing
487487
cmake --build .
488488
ctest
@@ -493,7 +493,7 @@ cmake --install . --prefix <path_to_install_dir>
493493
# Inside <path to onemkl>
494494
md build && cd build
495495
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="..\cmake\toolchain\intel_clang-cl-toolchain.cmake"
496-
[-DMKL_ROOT=<mkl_install_prefix>] \ # required only if enviroment variable MKLROOT is not set
496+
[-DMKL_ROOT=<mkl_install_prefix>] \ # required only if environment variable MKLROOT is not set
497497
[-DREF_BLAS_ROOT=<reference_blas_install_prefix>] # required only for testing
498498

499499
ninja

deps/googletest/include/gtest/gtest-printers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ void UniversalTersePrint(const T& value, ::std::ostream* os) {
862862
// NUL-terminated string.
863863
template <typename T>
864864
void UniversalPrint(const T& value, ::std::ostream* os) {
865-
// A workarond for the bug in VC++ 7.1 that prevents us from instantiating
865+
// A workaround for the bug in VC++ 7.1 that prevents us from instantiating
866866
// UniversalPrinter with T directly.
867867
typedef T T1;
868868
UniversalPrinter<T1>::Print(value, os);

deps/googletest/include/gtest/internal/gtest-filepath.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class GTEST_API_ FilePath {
195195

196196
void Normalize();
197197

198-
// Returns a pointer to the last occurence of a valid path separator in
198+
// Returns a pointer to the last occurrence of a valid path separator in
199199
// the FilePath. On Windows, for example, both '/' and '\' are valid path
200200
// separators. Returns NULL if no path separator was found.
201201
const char* FindLastPathSeparator() const;

deps/googletest/include/gtest/internal/gtest-port.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ struct ConstRef<T&> { typedef T& type; };
10691069
// const Foo*). When you use ImplicitCast_, the compiler checks that
10701070
// the cast is safe. Such explicit ImplicitCast_s are necessary in
10711071
// surprisingly many situations where C++ demands an exact type match
1072-
// instead of an argument type convertable to a target type.
1072+
// instead of an argument type convertible to a target type.
10731073
//
10741074
// The syntax for using ImplicitCast_ is the same as for static_cast:
10751075
//

deps/googletest/src/gtest-internal-inl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,9 @@ class GTEST_API_ UnitTestImpl {
513513
virtual ~UnitTestImpl();
514514

515515
// There are two different ways to register your own TestPartResultReporter.
516-
// You can register your own repoter to listen either only for test results
516+
// You can register your own reporter to listen either only for test results
517517
// from the current thread or for results from all threads.
518-
// By default, each per-thread test result repoter just passes a new
518+
// By default, each per-thread test result reporter just passes a new
519519
// TestPartResult to the global test result reporter, which registers the
520520
// test part result for the currently running test.
521521

@@ -1153,13 +1153,13 @@ class StreamingListener : public EmptyTestEventListener {
11531153
}
11541154

11551155
// Note that "event=TestCaseStart" is a wire format and has to remain
1156-
// "case" for compatibilty
1156+
// "case" for compatibility
11571157
void OnTestCaseStart(const TestCase& test_case) override {
11581158
SendLn(std::string("event=TestCaseStart&name=") + test_case.name());
11591159
}
11601160

11611161
// Note that "event=TestCaseEnd" is a wire format and has to remain
1162-
// "case" for compatibilty
1162+
// "case" for compatibility
11631163
void OnTestCaseEnd(const TestCase& test_case) override {
11641164
SendLn("event=TestCaseEnd&passed=" + FormatBool(test_case.Passed()) +
11651165
"&elapsed_time=" + StreamableToString(test_case.elapsed_time()) +

deps/googletest/src/gtest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const char kStackTraceMarker[] = "\nStack trace:\n";
181181
// specified on the command line.
182182
bool g_help_flag = false;
183183

184-
// Utilty function to Open File for Writing
184+
// Utility function to Open File for Writing
185185
static FILE* OpenFileForWriting(const std::string& output_file) {
186186
FILE* fileout = nullptr;
187187
FilePath output_file_path(output_file);

include/oneapi/mkl/rng/distributions.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class lognormal {
264264
// oneapi::mkl::rng::bernoulli_method::icdf;
265265
//
266266
// Input arguments:
267-
// p - success probablity of a trial. 0.5 by default
267+
// p - success probability of a trial. 0.5 by default
268268

269269
namespace bernoulli_method {
270270
struct icdf {};

src/blas/backends/cublas/cublas_helper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace blas {
3434
namespace cublas {
3535

3636
// The static assert to make sure that all index types used in
37-
// src/oneMKL/backend/cublas/blas.hpp inteface are int64_t
37+
// src/oneMKL/backend/cublas/blas.hpp interface are int64_t
3838
template <typename... Next>
3939
struct is_int64 : std::false_type {};
4040

src/blas/backends/cublas/cublas_scope_handle.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class CublasScopedContextHandler {
7777

7878
~CublasScopedContextHandler() noexcept(false);
7979
/**
80-
* @brief get_handle: creates the handle by implicitely impose the advice
80+
* @brief get_handle: creates the handle by implicitly impose the advice
8181
* given by nvidia for creating a cublas_handle. (e.g. one cuStream per device
8282
* per thread).
8383
* @param queue sycl queue.

tests/unit_tests/include/test_helper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class LayoutDeviceNamePrint {
117117
}
118118
};
119119

120-
/* to accomodate Windows and Linux differences between alligned_alloc and
120+
/* to accommodate Windows and Linux differences between alligned_alloc and
121121
_aligned_malloc calls use oneapi::mkl::aligned_alloc and oneapi::mkl::aligned_free instead */
122122
namespace oneapi {
123123
namespace mkl {

0 commit comments

Comments
 (0)