This is an automated email from the ASF dual-hosted git repository.

syfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 707daef83e Fix typos in multiple files (#17703)
707daef83e is described below

commit 707daef83eed60222b2e4cc38c7292cdf8b217ee
Author: co63oc <[email protected]>
AuthorDate: Tue Mar 4 22:21:42 2025 +0800

    Fix typos in multiple files (#17703)
---
 Makefile                                           | 4 ++--
 apps/cpp_rpc/rpc_env.cc                            | 2 +-
 apps/cpp_rpc/win32_process.cc                      | 2 +-
 apps/ios_rpc/tests/ios_rpc_test.py                 | 2 +-
 apps/ios_rpc/tvmrpc/RPCArgs.h                      | 2 +-
 apps/ios_rpc/tvmrpc/RPCServer.h                    | 4 ++--
 cmake/config.cmake                                 | 4 ++--
 cmake/libs/Libbacktrace.cmake                      | 2 +-
 cmake/modules/Logging.cmake                        | 2 +-
 docker/README.md                                   | 2 +-
 docker/install/ubuntu_install_arduino.sh           | 2 +-
 docker/install/ubuntu_install_golang.sh            | 2 +-
 docker/install/ubuntu_install_nodejs.sh            | 2 +-
 docs/arch/introduction_to_module_serialization.rst | 2 +-
 docs/arch/pass_infra.rst                           | 2 +-
 docs/contribute/pull_request.rst                   | 2 +-
 docs/how_to/dev/setup_rpc_system.rst               | 4 ++--
 golang/src/gotvm.cc                                | 4 ++--
 18 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/Makefile b/Makefile
index deb5c94f38..ecc891ab76 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ ROOTDIR = $(CURDIR)
 
 # Specify an alternate output directory relative to ROOTDIR.  Defaults
 # to "build".  Can also be a space-separated list of build
-# directories, each with a different configuation.
+# directories, each with a different configuration.
 TVM_BUILD_PATH ?= build
 TVM_BUILD_PATH := $(abspath $(TVM_BUILD_PATH))
 
@@ -63,7 +63,7 @@ endif
 # Cannot use .PHONY with a pattern rule, using FORCE instead.  For
 # now, force cmake to be re-run with each compile to mimic previous
 # behavior.  This may be relaxed in the future with the
-# CONFIGURE_DEPENDS option for GLOB (requres cmake >= 3.12).
+# CONFIGURE_DEPENDS option for GLOB (requires cmake >= 3.12).
 FORCE:
 %/CMakeCache.txt: %/config.cmake FORCE
        @cd $(@D) && cmake $(ROOTDIR)
diff --git a/apps/cpp_rpc/rpc_env.cc b/apps/cpp_rpc/rpc_env.cc
index 607b2572c0..ae70401fda 100644
--- a/apps/cpp_rpc/rpc_env.cc
+++ b/apps/cpp_rpc/rpc_env.cc
@@ -80,7 +80,7 @@ void CleanDir(const std::string& dirname);
 std::vector<std::string> ListDir(const std::string& dirname);
 
 /*!
- * \brief buld a shared library if necessary
+ * \brief build a shared library if necessary
  *
  *        This function will automatically call
  *        cc.create_shared if the path is in format .o or .tar
diff --git a/apps/cpp_rpc/win32_process.cc b/apps/cpp_rpc/win32_process.cc
index 610e38adf2..cc4c45d81a 100644
--- a/apps/cpp_rpc/win32_process.cc
+++ b/apps/cpp_rpc/win32_process.cc
@@ -126,7 +126,7 @@ SOCKET GetSocket(const std::string& mmap_path) {
     sock_duplicated =
         WSASocket(FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO, 
&protocol_info, 0, 0);
 
-    // Let the parent know we are finished dupicating the socket
+    // Let the parent know we are finished duplicating the socket
     SetEvent(child_file_mapping_event.get());
   } else {
     LOG(FATAL) << "MapViewOfFile() failed: " << GetLastError();
diff --git a/apps/ios_rpc/tests/ios_rpc_test.py 
b/apps/ios_rpc/tests/ios_rpc_test.py
index 3e807adf48..40149fba14 100644
--- a/apps/ios_rpc/tests/ios_rpc_test.py
+++ b/apps/ios_rpc/tests/ios_rpc_test.py
@@ -82,7 +82,7 @@ def test_rpc_module(host, port, key, mode):
 
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description="Demo app demonstrates how 
ios_rpc works.")
-    parser.add_argument("--host", required=True, type=str, help="Adress of rpc 
server")
+    parser.add_argument("--host", required=True, type=str, help="Address of 
rpc server")
     parser.add_argument("--port", type=int, default=9090, help="rpc port 
(default: 9090)")
     parser.add_argument("--key", type=str, default="iphone", help="device key 
(default: iphone)")
     parser.add_argument(
diff --git a/apps/ios_rpc/tvmrpc/RPCArgs.h b/apps/ios_rpc/tvmrpc/RPCArgs.h
index e5a1ee47a0..2ee6eb98c5 100644
--- a/apps/ios_rpc/tvmrpc/RPCArgs.h
+++ b/apps/ios_rpc/tvmrpc/RPCArgs.h
@@ -39,7 +39,7 @@ typedef struct RPCArgs_t {
   /// device key to report
   const char* key;
 
-  /// custom adress to report into Tracker. Ignored for other server modes.
+  /// custom address to report into Tracker. Ignored for other server modes.
   const char* custom_addr;
 
   /// Verbose mode. Will print status messages to std out.
diff --git a/apps/ios_rpc/tvmrpc/RPCServer.h b/apps/ios_rpc/tvmrpc/RPCServer.h
index dcb0d348df..0112529260 100644
--- a/apps/ios_rpc/tvmrpc/RPCServer.h
+++ b/apps/ios_rpc/tvmrpc/RPCServer.h
@@ -74,7 +74,7 @@ typedef enum {
 @property int port;
 /// Custom address to report into tracker server (optional). Ignored for 
Standalone/Proxy modes
 @property(retain) NSString* custom_addr;
-/// Triger to enable printing of server state info
+/// Trigger to enable printing of server state info
 @property BOOL verbose;
 /// RPC port opened on the device. Ignored for Proxy/Tracker modes
 @property int actual_port;
@@ -82,7 +82,7 @@ typedef enum {
 @property(retain) NSString* device_addr;
 
 /*!
- * \brief Create server with specified sevicing mode
+ * \brief Create server with specified servicing mode
  * \param mode Mode of server
  */
 + (instancetype)serverWithMode:(RPCServerMode)mode;
diff --git a/cmake/config.cmake b/cmake/config.cmake
index b552cd1187..88bb3a42c3 100644
--- a/cmake/config.cmake
+++ b/cmake/config.cmake
@@ -87,7 +87,7 @@ set(USE_RCCL OFF)
 # - /path/to/opencl-sdk: use specific path to opencl-sdk
 set(USE_OPENCL OFF)
 
-# Wheather to allow OPENCL cl_mem access to host
+# Whether to allow OPENCL cl_mem access to host
 # cl_mem will be allocated with CL_MEM_ALLOC_HOST_PTR
 # OpenCLWorkspace->GetHostPtr API returns the host accessible pointer
 set(USE_OPENCL_ENABLE_HOST_PTR OFF)
@@ -265,7 +265,7 @@ set(USE_ARM_COMPUTE_LIB_GRAPH_EXECUTOR OFF)
 #
 # USE_TENSORRT_CODEGEN - Support for compiling a relay graph where supported 
operators are
 #                        offloaded to TensorRT. OFF/ON
-# USE_TENSORRT_RUNTIME - Support for running TensorRT compiled modules, 
requires presense of
+# USE_TENSORRT_RUNTIME - Support for running TensorRT compiled modules, 
requires presence of
 #                        TensorRT library. OFF/ON/"path/to/TensorRT"
 set(USE_TENSORRT_CODEGEN OFF)
 set(USE_TENSORRT_RUNTIME OFF)
diff --git a/cmake/libs/Libbacktrace.cmake b/cmake/libs/Libbacktrace.cmake
index 61f8c921a1..4e62748a2c 100644
--- a/cmake/libs/Libbacktrace.cmake
+++ b/cmake/libs/Libbacktrace.cmake
@@ -19,7 +19,7 @@
 # compiler the default SDK (usually 
/Library/Developer/CommandLineTools/usr/bin/ or
 # 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/).
 CMake
 # automatically detects what is being dispatched and uses it instead along 
with all the flags it
-# needs. CMake makes this second compiler avaliable through the 
CMAKE_C_COMPILER variable, but it
+# needs. CMake makes this second compiler available through the 
CMAKE_C_COMPILER variable, but it
 # does not make the necessary flags available. This leads to configuration 
errors in libbacktrace
 # because it can't find system libraries. Our solution is to detect if 
CMAKE_C_COMPILER lives in
 # /Library or /Applications and switch to the default compiler instead.
diff --git a/cmake/modules/Logging.cmake b/cmake/modules/Logging.cmake
index eea9db67ef..ae4b561186 100644
--- a/cmake/modules/Logging.cmake
+++ b/cmake/modules/Logging.cmake
@@ -20,7 +20,7 @@
 include(FindPackageHandleStandardArgs)
 
 if(USE_CUSTOM_LOGGING)
-  # Set and propogate TVM_LOG_CUSTOMIZE flag is custom logging has been 
requested
+  # Set and propagate TVM_LOG_CUSTOMIZE flag is custom logging has been 
requested
   target_compile_definitions(tvm_objs PUBLIC TVM_LOG_CUSTOMIZE=1)
   target_compile_definitions(tvm_runtime_objs PUBLIC TVM_LOG_CUSTOMIZE=1)
   target_compile_definitions(tvm_libinfo_objs PUBLIC TVM_LOG_CUSTOMIZE=1)
diff --git a/docker/README.md b/docker/README.md
index acebf923b4..ecc6e79489 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -98,7 +98,7 @@ or
 
 the same applies to the other images (``./docker/Dockerfile.*```).
 
-The command ``./docker/build.sh image_name COMMANDS`` is almost equivelant to
+The command ``./docker/build.sh image_name COMMANDS`` is almost equivalent to
 ``./docker/bash.sh image_name COMMANDS`` but in the case of ``bash.sh``
 a build attempt is not done.
 
diff --git a/docker/install/ubuntu_install_arduino.sh 
b/docker/install/ubuntu_install_arduino.sh
index 15dbd20fa7..3562ddd14d 100755
--- a/docker/install/ubuntu_install_arduino.sh
+++ b/docker/install/ubuntu_install_arduino.sh
@@ -31,6 +31,6 @@ arduino-cli core install arduino:mbed_nano
 arduino-cli core install arduino:sam
 
 # ARDUINO_DIRECTORIES_USER wouldn't normally be created until we
-# install a package, which would casue chmod to fail
+# install a package, which would cause chmod to fail
 mkdir -p "${ARDUINO_DIRECTORIES_DATA}" "${ARDUINO_DIRECTORIES_USER}" 
"${ARDUINO_DIRECTORIES_DOWNLOADS}"
 chmod -R o+rw "${ARDUINO_DIRECTORIES_DATA}" "${ARDUINO_DIRECTORIES_USER}" 
"${ARDUINO_DIRECTORIES_DOWNLOADS}"
diff --git a/docker/install/ubuntu_install_golang.sh 
b/docker/install/ubuntu_install_golang.sh
index 5a419624a8..a829e10110 100755
--- a/docker/install/ubuntu_install_golang.sh
+++ b/docker/install/ubuntu_install_golang.sh
@@ -20,6 +20,6 @@ set -e
 set -u
 set -o pipefail
 
-#install the necessary dependancies for golang build
+#install the necessary dependencies for golang build
 apt-get update
 apt-install-and-clear -y golang-1.18-go golang-1.18-doc golint
diff --git a/docker/install/ubuntu_install_nodejs.sh 
b/docker/install/ubuntu_install_nodejs.sh
index 6d9ef3f5de..f3697f5141 100755
--- a/docker/install/ubuntu_install_nodejs.sh
+++ b/docker/install/ubuntu_install_nodejs.sh
@@ -22,7 +22,7 @@ set -o pipefail
 
 apt-get update
 # Please do not remove 'curl' package installation from here, as this
-# script runs in some images (e.g. ci_lint) that keep a very mininal
+# script runs in some images (e.g. ci_lint) that keep a very minimal
 # set of packages installed by default.
 apt-install-and-clear -y curl
 
diff --git a/docs/arch/introduction_to_module_serialization.rst 
b/docs/arch/introduction_to_module_serialization.rst
index 0737c66485..49cb7d8e45 100644
--- a/docs/arch/introduction_to_module_serialization.rst
+++ b/docs/arch/introduction_to_module_serialization.rst
@@ -134,7 +134,7 @@ and ``import_tree_child_indices_`` into stream.
 
 After this step, we will pack it into a symbol
 ``runtime::symbol::tvm_dev_mblob`` that can be recovered in the dynamic
-libary.
+library.
 
 Now, we complete the serialization part. As you have seen, we could
 support arbitrary modules to import ideally.
diff --git a/docs/arch/pass_infra.rst b/docs/arch/pass_infra.rst
index ae92874fc7..352b1524c4 100644
--- a/docs/arch/pass_infra.rst
+++ b/docs/arch/pass_infra.rst
@@ -411,7 +411,7 @@ of the ``PassContext`` instance.
 
 ``InstrumentExitPassContext`` is called when leaving the scope of 
``PassContext``,
 or exceptions occur during the execution of passes.
-This method is also called when instruments is being overriden by 
``override_instruments`` in :py:class:`tvm.transform.PassContext`.
+This method is also called when instruments is being overridden by 
``override_instruments`` in :py:class:`tvm.transform.PassContext`.
 See :ref:`pass_instrument_overriden`.
 
 ``InstrumentBeforePass`` is called before execution.
diff --git a/docs/contribute/pull_request.rst b/docs/contribute/pull_request.rst
index 943fa99a32..67f676abea 100644
--- a/docs/contribute/pull_request.rst
+++ b/docs/contribute/pull_request.rst
@@ -130,7 +130,7 @@ allowing fast log searches, bisecting, and so on.
    or explanation in the body.
 
 For minor deviations from these guidelines, the community will normally favor
-reminding the contributor of this policy over reverting or blocking a commmit /
+reminding the contributor of this policy over reverting or blocking a commit /
 PR.
 
 Commits and PRs without a title and/or a body are not considered minor
diff --git a/docs/how_to/dev/setup_rpc_system.rst 
b/docs/how_to/dev/setup_rpc_system.rst
index 50cfa30a05..58c678a6bd 100644
--- a/docs/how_to/dev/setup_rpc_system.rst
+++ b/docs/how_to/dev/setup_rpc_system.rst
@@ -50,7 +50,7 @@ As above figure shown, because there aren’t physical 
connection channels betwe
 Setup RPC Tracker and RPC Proxy
 -------------------------------
 
-In general, RPC tracker and RPC proxy only need to be run on host machine, 
e.g., development server or PC, they needn't depend on any enironment of device 
machine, so the only work need to do for setting up them is executing below 
commands on the corresponding machine after installing Apache TVM according to 
the official document `<https://tvm.apache.org/docs/install/index.html>`_.
+In general, RPC tracker and RPC proxy only need to be run on host machine, 
e.g., development server or PC, they needn't depend on any environment of 
device machine, so the only work need to do for setting up them is executing 
below commands on the corresponding machine after installing Apache TVM 
according to the official document 
`<https://tvm.apache.org/docs/install/index.html>`_.
 
 - RPC Tracker
 
@@ -184,7 +184,7 @@ Troubleshooting
 
 The package ``numpy`` is imported in some Python files which RPC server 
dependent on, and eliminating the import relationship is difficult, for some 
devices cross compiling ``numpy`` is very hard to do too.
 
-But acturally the TVM runtime doesn't really dependent on ``numpy``, so a very 
simple workaround is create a dummy ``numpy``, just need to copy the below 
content into a file named ``numpy.py`` and place it into directory like 
``/usr/local/lib/python3.9/site-packages``.
+But actually the TVM runtime doesn't really dependent on ``numpy``, so a very 
simple workaround is create a dummy ``numpy``, just need to copy the below 
content into a file named ``numpy.py`` and place it into directory like 
``/usr/local/lib/python3.9/site-packages``.
 
 .. code-block:: python
 
diff --git a/golang/src/gotvm.cc b/golang/src/gotvm.cc
index f599c405d5..7bfaf51dba 100644
--- a/golang/src/gotvm.cc
+++ b/golang/src/gotvm.cc
@@ -139,7 +139,7 @@ int _TVMFuncListGlobalNames(_gostring_* names) {
 
 /*!
  * \brief Native helper to copy TVMValue from golang slice to native array.
- * this helper is need as underlying momory for golang slice is not 
continueous.
+ * this helper is need as underlying memory for golang slice is not continuous.
  *
  * \param to_ptr is the native pointer of TVMValue array.
  * \param from_ptr pointer to TVMValue in golang slice.
@@ -153,7 +153,7 @@ void _TVMValueNativeSet(void* to_ptr, void* from_ptr, int 
ind) {
 
 /*!
  * \brief Native helper to copy TVMValue from golang slice to native array.
- * this helper is need as underlying momory for golang slice is not 
continueous.
+ * this helper is need as underlying memory for golang slice is not continuous.
  *
  * \param to_ptr pointer to TVMValue in golang slice.
  * \param from_ptr is the native pointer of TVMValue array.

Reply via email to