This is an automated email from the ASF dual-hosted git repository.
tqchen 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 69018327c9 [chore] Cleanup stale dependencies (#18760)
69018327c9 is described below
commit 69018327c9bbe759e816c9065543f19bf2833127
Author: Tianqi Chen <[email protected]>
AuthorDate: Thu Feb 12 07:15:03 2026 -0500
[chore] Cleanup stale dependencies (#18760)
This PR cleansup stale thirdparty dependencies that are no longer
needed.
---
.gitmodules | 6 -
3rdparty/cnpy | 1 -
3rdparty/libcrc/.gitignore | 21 --
3rdparty/libcrc/include/checksum.h | 116 --------
3rdparty/libcrc/src/crcccitt.c | 119 --------
3rdparty/libcrc/tab/gentab_ccitt.inc | 269 -----------------
3rdparty/mlperftiny/README.md | 2 -
3rdparty/mlperftiny/api/internally_implemented.cpp | 325 ---------------------
3rdparty/mlperftiny/api/internally_implemented.h | 62 ----
3rdparty/mlperftiny/api/submitter_implemented.h | 85 ------
3rdparty/zlib | 1 -
CMakeLists.txt | 29 --
LICENSE | 11 +-
cmake/config.cmake | 26 --
cmake/modules/LibInfo.cmake | 6 -
docs/how_to/dev/setup_rpc_system.rst | 1 -
licenses/LICENSE.cma.txt | 22 --
licenses/LICENSE.cnpy.txt | 21 --
licenses/LICENSE.libcrc.txt | 21 --
licenses/LICENSE.zlib.txt | 22 --
python/tvm/testing/utils.py | 3 -
src/runtime/hexagon/README.md | 1 -
src/support/libinfo.cc | 14 -
tests/scripts/task_config_build_arm.sh | 2 -
tests/scripts/task_config_build_cpu.sh | 3 -
tests/scripts/task_config_build_gpu.sh | 3 -
tests/scripts/task_config_build_gpu_other.sh | 2 -
tests/scripts/task_config_build_hexagon.sh | 1 -
tests/scripts/task_config_build_i386.sh | 2 -
tests/scripts/task_config_build_static.sh | 32 --
30 files changed, 3 insertions(+), 1226 deletions(-)
diff --git a/.gitmodules b/.gitmodules
index 0513981e58..0d87e21cf2 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -10,18 +10,12 @@
[submodule "3rdparty/OpenCL-Headers"]
path = 3rdparty/OpenCL-Headers
url = https://github.com/KhronosGroup/OpenCL-Headers.git
-[submodule "3rdparty/cnpy"]
- path = 3rdparty/cnpy
- url = https://github.com/rogersce/cnpy.git
[submodule "3rdparty/cutlass_fpA_intB_gemm"]
path = 3rdparty/cutlass_fpA_intB_gemm
url = https://github.com/tlc-pack/cutlass_fpA_intB_gemm
[submodule "3rdparty/libflash_attn"]
path = 3rdparty/libflash_attn
url = https://github.com/tlc-pack/libflash_attn
-[submodule "3rdparty/zlib"]
- path = 3rdparty/zlib
- url = https://github.com/madler/zlib.git
[submodule "3rdparty/tvm-ffi"]
path = 3rdparty/tvm-ffi
url = https://github.com/apache/tvm-ffi
diff --git a/3rdparty/cnpy b/3rdparty/cnpy
deleted file mode 160000
index 4e8810b1a8..0000000000
--- a/3rdparty/cnpy
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4e8810b1a8637695171ed346ce68f6984e585ef4
diff --git a/3rdparty/libcrc/.gitignore b/3rdparty/libcrc/.gitignore
deleted file mode 100644
index 961438e748..0000000000
--- a/3rdparty/libcrc/.gitignore
+++ /dev/null
@@ -1,21 +0,0 @@
-*~
-.*.swp
-lib/*.lib
-lib/*.a
-obj/*.obj
-obj/*.o
-test/obj/*.obj
-test/obj/*.o
-examples/obj/*.obj
-examples/obj/*.o
-precalc/obj/*.obj
-precalc/obj/*.o
-tab/gentab32.inc
-tab/gentab64.inc
-make.exe
-testall.exe
-testall
-tstcrc.exe
-tstcrc
-bin/prc.exe
-bin/prc
diff --git a/3rdparty/libcrc/include/checksum.h
b/3rdparty/libcrc/include/checksum.h
deleted file mode 100644
index 505f41292c..0000000000
--- a/3rdparty/libcrc/include/checksum.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Library: libcrc
- * File: include/checksum.h
- * Author: Lammert Bies
- *
- * This file is licensed under the MIT License as stated below
- *
- * Copyright (c) 1999-2018 Lammert Bies
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE
- * SOFTWARE.
- *
- * Description
- * -----------
- * The headerfile include/checksum.h contains the definitions and prototypes
- * for routines that can be used to calculate several kinds of checksums.
- */
-
-#ifndef DEF_LIBCRC_CHECKSUM_H
-#define DEF_LIBCRC_CHECKSUM_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stddef.h>
-#include <stdint.h>
-
-/*
- * #define CRC_POLY_xxxx
- *
- * The constants of the form CRC_POLY_xxxx define the polynomials for some well
- * known CRC calculations.
- */
-
-#define CRC_POLY_16 0xA001
-#define CRC_POLY_32 0xEDB88320ul
-#define CRC_POLY_64 0x42F0E1EBA9EA3693ull
-#define CRC_POLY_CCITT 0x1021
-#define CRC_POLY_DNP 0xA6BC
-#define CRC_POLY_KERMIT 0x8408
-#define CRC_POLY_SICK 0x8005
-
-/*
- * #define CRC_START_xxxx
- *
- * The constants of the form CRC_START_xxxx define the values that are used for
- * initialization of a CRC value for common used calculation methods.
- */
-
-#define CRC_START_8 0x00
-#define CRC_START_16 0x0000
-#define CRC_START_MODBUS 0xFFFF
-#define CRC_START_XMODEM 0x0000
-#define CRC_START_CCITT_1D0F 0x1D0F
-#define CRC_START_CCITT_FFFF 0xFFFF
-#define CRC_START_KERMIT 0x0000
-#define CRC_START_SICK 0x0000
-#define CRC_START_DNP 0x0000
-#define CRC_START_32 0xFFFFFFFFul
-#define CRC_START_64_ECMA 0x0000000000000000ull
-#define CRC_START_64_WE 0xFFFFFFFFFFFFFFFFull
-
-/*
- * Prototype list of global functions
- */
-
-unsigned char* checksum_NMEA(const unsigned char* input_str, unsigned char*
result);
-uint8_t crc_8(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_16(const unsigned char* input_str, size_t num_bytes);
-uint32_t crc_32(const unsigned char* input_str, size_t num_bytes);
-uint64_t crc_64_ecma(const unsigned char* input_str, size_t num_bytes);
-uint64_t crc_64_we(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_ccitt_1d0f(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_ccitt_ffff(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_dnp(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_kermit(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_modbus(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_sick(const unsigned char* input_str, size_t num_bytes);
-uint16_t crc_xmodem(const unsigned char* input_str, size_t num_bytes);
-uint8_t update_crc_8(uint8_t crc, unsigned char c);
-uint16_t update_crc_16(uint16_t crc, unsigned char c);
-uint32_t update_crc_32(uint32_t crc, unsigned char c);
-uint64_t update_crc_64_ecma(uint64_t crc, unsigned char c);
-uint16_t update_crc_ccitt(uint16_t crc, unsigned char c);
-uint16_t update_crc_dnp(uint16_t crc, unsigned char c);
-uint16_t update_crc_kermit(uint16_t crc, unsigned char c);
-uint16_t update_crc_sick(uint16_t crc, unsigned char c, unsigned char
prev_byte);
-
-/*
- * Global CRC lookup tables
- */
-
-extern const uint32_t crc_tab32[];
-extern const uint64_t crc_tab64[];
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // DEF_LIBCRC_CHECKSUM_H
diff --git a/3rdparty/libcrc/src/crcccitt.c b/3rdparty/libcrc/src/crcccitt.c
deleted file mode 100644
index 2b7ad3adb0..0000000000
--- a/3rdparty/libcrc/src/crcccitt.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * Library: libcrc
- * File: src/crcccitt.c
- * Author: Lammert Bies
- *
- * This file is licensed under the MIT License as stated below
- *
- * Copyright (c) 1999-2016 Lammert Bies
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE
- * SOFTWARE.
- *
- * Description
- * -----------
- * The module src/crcccitt.c contains routines which are used to calculate the
- * CCITT CRC values of a string of bytes.
- */
-
-#include <inttypes.h>
-#include <stdbool.h>
-#include <stdlib.h>
-
-#include "../tab/gentab_ccitt.inc"
-#include "checksum.h"
-
-static uint16_t crc_ccitt_generic(const unsigned char* input_str, size_t
num_bytes,
- uint16_t start_value);
-
-/*
- * uint16_t crc_xmodem( const unsigned char *input_str, size_t num_bytes );
- *
- * The function crc_xmodem() performs a one-pass calculation of an X-Modem CRC
- * for a byte string that has been passed as a parameter.
- */
-
-uint16_t crc_xmodem(const unsigned char* input_str, size_t num_bytes) {
- return crc_ccitt_generic(input_str, num_bytes, CRC_START_XMODEM);
-
-} /* crc_xmodem */
-
-/*
- * uint16_t crc_ccitt_1d0f( const unsigned char *input_str, size_t num_bytes );
- *
- * The function crc_ccitt_1d0f() performs a one-pass calculation of the CCITT
- * CRC for a byte string that has been passed as a parameter. The initial value
- * 0x1d0f is used for the CRC.
- */
-
-uint16_t crc_ccitt_1d0f(const unsigned char* input_str, size_t num_bytes) {
- return crc_ccitt_generic(input_str, num_bytes, CRC_START_CCITT_1D0F);
-
-} /* crc_ccitt_1d0f */
-
-/*
- * uint16_t crc_ccitt_ffff( const unsigned char *input_str, size_t num_bytes );
- *
- * The function crc_ccitt_ffff() performs a one-pass calculation of the CCITT
- * CRC for a byte string that has been passed as a parameter. The initial value
- * 0xffff is used for the CRC.
- */
-
-uint16_t crc_ccitt_ffff(const unsigned char* input_str, size_t num_bytes) {
- return crc_ccitt_generic(input_str, num_bytes, CRC_START_CCITT_FFFF);
-
-} /* crc_ccitt_ffff */
-
-/*
- * static uint16_t crc_ccitt_generic( const unsigned char *input_str, size_t
num_bytes, uint16_t
- * start_value );
- *
- * The function crc_ccitt_generic() is a generic implementation of the CCITT
- * algorithm for a one-pass calculation of the CRC for a byte string. The
- * function accepts an initial start value for the crc.
- */
-
-static uint16_t crc_ccitt_generic(const unsigned char* input_str, size_t
num_bytes,
- uint16_t start_value) {
- uint16_t crc;
- const unsigned char* ptr;
- size_t a;
-
- crc = start_value;
- ptr = input_str;
-
- if (ptr != NULL)
- for (a = 0; a < num_bytes; a++) {
- crc = (crc << 8) ^ crc_tabccitt[((crc >> 8) ^ (uint16_t)*ptr++) &
0x00FF];
- }
-
- return crc;
-
-} /* crc_ccitt_generic */
-
-/*
- * uint16_t update_crc_ccitt( uint16_t crc, unsigned char c );
- *
- * The function update_crc_ccitt() calculates a new CRC-CCITT value based on
- * the previous value of the CRC and the next byte of the data to be checked.
- */
-
-uint16_t update_crc_ccitt(uint16_t crc, unsigned char c) {
- return (crc << 8) ^ crc_tabccitt[((crc >> 8) ^ (uint16_t)c) & 0x00FF];
-
-} /* update_crc_ccitt */
diff --git a/3rdparty/libcrc/tab/gentab_ccitt.inc
b/3rdparty/libcrc/tab/gentab_ccitt.inc
deleted file mode 100644
index 8cd92ebc17..0000000000
--- a/3rdparty/libcrc/tab/gentab_ccitt.inc
+++ /dev/null
@@ -1,269 +0,0 @@
-/*
- * Library: libcrc
- * File: tab/gentab_ccitt.inc
- * Author: Auto generated by the precalc program
- *
- * PLEASE DO NOT CHANGE THIS FILE!
- * ===============================
- * This file was automatically generated and will be overwritten whenever the
- * library is recompiled. All manually added changes will be lost in that case.
- */
-
-const uint16_t crc_tabccitt[256] = {
- 0x0000u,
- 0x1021u,
- 0x2042u,
- 0x3063u,
- 0x4084u,
- 0x50A5u,
- 0x60C6u,
- 0x70E7u,
- 0x8108u,
- 0x9129u,
- 0xA14Au,
- 0xB16Bu,
- 0xC18Cu,
- 0xD1ADu,
- 0xE1CEu,
- 0xF1EFu,
- 0x1231u,
- 0x0210u,
- 0x3273u,
- 0x2252u,
- 0x52B5u,
- 0x4294u,
- 0x72F7u,
- 0x62D6u,
- 0x9339u,
- 0x8318u,
- 0xB37Bu,
- 0xA35Au,
- 0xD3BDu,
- 0xC39Cu,
- 0xF3FFu,
- 0xE3DEu,
- 0x2462u,
- 0x3443u,
- 0x0420u,
- 0x1401u,
- 0x64E6u,
- 0x74C7u,
- 0x44A4u,
- 0x5485u,
- 0xA56Au,
- 0xB54Bu,
- 0x8528u,
- 0x9509u,
- 0xE5EEu,
- 0xF5CFu,
- 0xC5ACu,
- 0xD58Du,
- 0x3653u,
- 0x2672u,
- 0x1611u,
- 0x0630u,
- 0x76D7u,
- 0x66F6u,
- 0x5695u,
- 0x46B4u,
- 0xB75Bu,
- 0xA77Au,
- 0x9719u,
- 0x8738u,
- 0xF7DFu,
- 0xE7FEu,
- 0xD79Du,
- 0xC7BCu,
- 0x48C4u,
- 0x58E5u,
- 0x6886u,
- 0x78A7u,
- 0x0840u,
- 0x1861u,
- 0x2802u,
- 0x3823u,
- 0xC9CCu,
- 0xD9EDu,
- 0xE98Eu,
- 0xF9AFu,
- 0x8948u,
- 0x9969u,
- 0xA90Au,
- 0xB92Bu,
- 0x5AF5u,
- 0x4AD4u,
- 0x7AB7u,
- 0x6A96u,
- 0x1A71u,
- 0x0A50u,
- 0x3A33u,
- 0x2A12u,
- 0xDBFDu,
- 0xCBDCu,
- 0xFBBFu,
- 0xEB9Eu,
- 0x9B79u,
- 0x8B58u,
- 0xBB3Bu,
- 0xAB1Au,
- 0x6CA6u,
- 0x7C87u,
- 0x4CE4u,
- 0x5CC5u,
- 0x2C22u,
- 0x3C03u,
- 0x0C60u,
- 0x1C41u,
- 0xEDAEu,
- 0xFD8Fu,
- 0xCDECu,
- 0xDDCDu,
- 0xAD2Au,
- 0xBD0Bu,
- 0x8D68u,
- 0x9D49u,
- 0x7E97u,
- 0x6EB6u,
- 0x5ED5u,
- 0x4EF4u,
- 0x3E13u,
- 0x2E32u,
- 0x1E51u,
- 0x0E70u,
- 0xFF9Fu,
- 0xEFBEu,
- 0xDFDDu,
- 0xCFFCu,
- 0xBF1Bu,
- 0xAF3Au,
- 0x9F59u,
- 0x8F78u,
- 0x9188u,
- 0x81A9u,
- 0xB1CAu,
- 0xA1EBu,
- 0xD10Cu,
- 0xC12Du,
- 0xF14Eu,
- 0xE16Fu,
- 0x1080u,
- 0x00A1u,
- 0x30C2u,
- 0x20E3u,
- 0x5004u,
- 0x4025u,
- 0x7046u,
- 0x6067u,
- 0x83B9u,
- 0x9398u,
- 0xA3FBu,
- 0xB3DAu,
- 0xC33Du,
- 0xD31Cu,
- 0xE37Fu,
- 0xF35Eu,
- 0x02B1u,
- 0x1290u,
- 0x22F3u,
- 0x32D2u,
- 0x4235u,
- 0x5214u,
- 0x6277u,
- 0x7256u,
- 0xB5EAu,
- 0xA5CBu,
- 0x95A8u,
- 0x8589u,
- 0xF56Eu,
- 0xE54Fu,
- 0xD52Cu,
- 0xC50Du,
- 0x34E2u,
- 0x24C3u,
- 0x14A0u,
- 0x0481u,
- 0x7466u,
- 0x6447u,
- 0x5424u,
- 0x4405u,
- 0xA7DBu,
- 0xB7FAu,
- 0x8799u,
- 0x97B8u,
- 0xE75Fu,
- 0xF77Eu,
- 0xC71Du,
- 0xD73Cu,
- 0x26D3u,
- 0x36F2u,
- 0x0691u,
- 0x16B0u,
- 0x6657u,
- 0x7676u,
- 0x4615u,
- 0x5634u,
- 0xD94Cu,
- 0xC96Du,
- 0xF90Eu,
- 0xE92Fu,
- 0x99C8u,
- 0x89E9u,
- 0xB98Au,
- 0xA9ABu,
- 0x5844u,
- 0x4865u,
- 0x7806u,
- 0x6827u,
- 0x18C0u,
- 0x08E1u,
- 0x3882u,
- 0x28A3u,
- 0xCB7Du,
- 0xDB5Cu,
- 0xEB3Fu,
- 0xFB1Eu,
- 0x8BF9u,
- 0x9BD8u,
- 0xABBBu,
- 0xBB9Au,
- 0x4A75u,
- 0x5A54u,
- 0x6A37u,
- 0x7A16u,
- 0x0AF1u,
- 0x1AD0u,
- 0x2AB3u,
- 0x3A92u,
- 0xFD2Eu,
- 0xED0Fu,
- 0xDD6Cu,
- 0xCD4Du,
- 0xBDAAu,
- 0xAD8Bu,
- 0x9DE8u,
- 0x8DC9u,
- 0x7C26u,
- 0x6C07u,
- 0x5C64u,
- 0x4C45u,
- 0x3CA2u,
- 0x2C83u,
- 0x1CE0u,
- 0x0CC1u,
- 0xEF1Fu,
- 0xFF3Eu,
- 0xCF5Du,
- 0xDF7Cu,
- 0xAF9Bu,
- 0xBFBAu,
- 0x8FD9u,
- 0x9FF8u,
- 0x6E17u,
- 0x7E36u,
- 0x4E55u,
- 0x5E74u,
- 0x2E93u,
- 0x3EB2u,
- 0x0ED1u,
- 0x1EF0u
-};
diff --git a/3rdparty/mlperftiny/README.md b/3rdparty/mlperftiny/README.md
deleted file mode 100644
index 28938e90d7..0000000000
--- a/3rdparty/mlperftiny/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# MLPerf™ Tiny Benchmark API
-This directory includes API files to build a microTVM project that could be
tested with EEMBC benchmark runner. API files are captured from the
[MLCommons/tiny repository](https://github.com/mlcommons/tiny).
diff --git a/3rdparty/mlperftiny/api/internally_implemented.cpp
b/3rdparty/mlperftiny/api/internally_implemented.cpp
deleted file mode 100644
index 4754d4e267..0000000000
--- a/3rdparty/mlperftiny/api/internally_implemented.cpp
+++ /dev/null
@@ -1,325 +0,0 @@
-/*
-Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-This file is a modified version of the original EEMBC implementation of ee_lib.
-The file name has been changed and some functions removed. Malloc has been
-replaced by a fixed-size array.
-==============================================================================*/
-/// \file
-/// \brief Internally-implemented methods required to perform inference.
-
-#include "internally_implemented.h"
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <string.h>
-
-#include "submitter_implemented.h"
-
-// Command buffer (incoming commands from host)
-char volatile g_cmd_buf[EE_CMD_SIZE + 1];
-size_t volatile g_cmd_pos = 0u;
-
-// Generic buffer to db input.
-uint8_t gp_buff[MAX_DB_INPUT_SIZE];
-size_t g_buff_size = 0u;
-size_t g_buff_pos = 0u;
-
-/**
- * Since the serial port ISR may be connected before the loop is ready, this
- * flag turns off the parser until the main routine is ready.
- */
-bool g_state_parser_enabled = false;
-
-/**
- * This function assembles a command string from the UART. It should be called
- * from the UART ISR for each new character received. When the parser sees the
- * termination character, the user-defined th_command_ready() command is
called.
- * It is up to the application to then dispatch this command outside the ISR
- * as soon as possible by calling ee_serial_command_parser_callback(), below.
- */
-void ee_serial_callback(char c) {
- if (c == EE_CMD_TERMINATOR) {
- g_cmd_buf[g_cmd_pos] = (char)0;
- th_command_ready(g_cmd_buf);
- g_cmd_pos = 0;
- } else {
- g_cmd_buf[g_cmd_pos] = c;
- g_cmd_pos = g_cmd_pos >= EE_CMD_SIZE ? EE_CMD_SIZE : g_cmd_pos + 1;
- }
-}
-
-/**
- * This is the minimal parser required to test the monitor; profile-specific
- * commands are handled by whatever profile is compiled into the firmware.
- *
- * The most basic commands are:
- *
- * name Print m-name-NAME, where NAME defines the intent of the f/w
- * timestamp Generate a signal used for timestamping by the framework
- */
-/*@-mustfreefresh*/
-/*@-nullpass*/
-void ee_serial_command_parser_callback(char *p_command) {
- char *tok;
-
- if (g_state_parser_enabled != true) {
- return;
- }
-
- tok = strtok(p_command, EE_CMD_DELIMITER);
-
- if (strncmp(tok, EE_CMD_NAME, EE_CMD_SIZE) == 0) {
- th_printf(EE_MSG_NAME, EE_DEVICE_NAME, TH_VENDOR_NAME_STRING);
- } else if (strncmp(tok, EE_CMD_TIMESTAMP, EE_CMD_SIZE) == 0) {
- th_timestamp();
- } else if (ee_profile_parse(tok) == EE_ARG_CLAIMED) {
- } else {
- th_printf(EE_ERR_CMD, tok);
- }
-
- th_printf(EE_MSG_READY);
-}
-
-/**
- * Perform the basic setup.
- */
-void ee_benchmark_initialize(void) {
- th_serialport_initialize();
- th_timestamp_initialize();
- th_final_initialize();
- th_printf(EE_MSG_INIT_DONE);
- // Enable the command parser here (the callback is connected)
- g_state_parser_enabled = true;
- // At this point, the serial monitor should be up and running,
- th_printf(EE_MSG_READY);
-}
-
-arg_claimed_t ee_profile_parse(char *command) {
- char *p_next; /* strtok already primed from ee_main.c */
-
- if (strncmp(command, "profile", EE_CMD_SIZE) == 0) {
- th_printf("m-profile-[%s]\r\n", EE_FW_VERSION);
- th_printf("m-model-[%s]\r\n", TH_MODEL_VERSION);
- } else if (strncmp(command, "help", EE_CMD_SIZE) == 0) {
- th_printf("%s\r\n", EE_FW_VERSION);
- th_printf("\r\n");
- /* These are the three common functions for all IoTConnect f/w. */
- th_printf("help : Print this information\r\n");
- th_printf("name : Print the name of the device\r\n");
- th_printf("timestsamp : Generate a timetsamp\r\n");
- /* These are profile-specific commands. */
- th_printf("db SUBCMD : Manipulate a generic byte buffer\r\n");
- th_printf(" load N : Allocate N bytes and set load counter\r\n");
- th_printf(" db HH[HH]* : Load 8-bit hex byte(s) until N bytes\r\n");
- th_printf(" print [N=16] [offset=0]\r\n");
- th_printf(" : Print N bytes at offset as hex\r\n");
- th_printf(
- "infer N [W=0]: Load input, execute N inferences after W warmup "
- "loops\r\n");
- th_printf("results : Return the result fp32 vector\r\n");
- } else if (ee_buffer_parse(command) == EE_ARG_CLAIMED) {
- } else if (strncmp(command, "infer", EE_CMD_SIZE) == 0) {
- size_t n = 1;
- size_t w = 10;
- int i;
-
- /* Check for inference iterations */
- p_next = strtok(NULL, EE_CMD_DELIMITER);
- if (p_next) {
- i = atoi(p_next);
- if (i <= 0) {
- th_printf("e-[Inference iterations must be >0]\r\n");
- return EE_ARG_CLAIMED;
- }
- n = (size_t)i;
- /* Check for warmup iterations */
- p_next = strtok(NULL, EE_CMD_DELIMITER);
- if (p_next) {
- i = atoi(p_next);
- if (i < 0) {
- th_printf("e-[Inference warmup must be >=0]\r\n");
- return EE_ARG_CLAIMED;
- }
- w = (size_t)i;
- }
- }
-
- ee_infer(n, w);
- } else if (strncmp(command, "results", EE_CMD_SIZE) == 0) {
- th_results();
- } else {
- return EE_ARG_UNCLAIMED;
- }
- return EE_ARG_CLAIMED;
-}
-
-/**
- * Inference without feature engineering. The inpput tensor is expected to
- * have been loaded from the buffer via the th_load_tensor() function, which in
- * turn was loaded from the interface via `db` commands.
- *
- * For testing, you can pre-load known-good data into the buffer during the
- * th_final_initialize() function.
- *
- */
-void ee_infer(size_t n, size_t n_warmup) {
- th_load_tensor(); /* if necessary */
- th_printf("m-warmup-start-%d\r\n", n_warmup);
- while (n_warmup-- > 0) {
- th_infer(); /* call the API inference function */
- }
- th_printf("m-warmup-done\r\n");
- th_printf("m-infer-start-%d\r\n", n);
- th_timestamp();
- th_pre();
- while (n-- > 0) {
- th_infer(); /* call the API inference function */
- }
- th_post();
- th_timestamp();
- th_printf("m-infer-done\r\n");
- th_results();
-}
-
-arg_claimed_t ee_buffer_parse(char *p_command) {
- char *p_next;
-
- if (strncmp(p_command, "db", EE_CMD_SIZE) != 0) {
- return EE_ARG_UNCLAIMED;
- }
-
- p_next = strtok(NULL, EE_CMD_DELIMITER);
-
- if (p_next == NULL) {
- th_printf("e-[Command 'db' requires a subcommand]\r\n");
- } else if (strncmp(p_next, "load", EE_CMD_SIZE) == 0) {
- p_next = strtok(NULL, EE_CMD_DELIMITER);
-
- if (p_next == NULL) {
- th_printf("e-[Command 'db load' requires the # of bytes]\r\n");
- } else {
- g_buff_size = (size_t)atoi(p_next);
- if (g_buff_size == 0) {
- th_printf("e-[Command 'db load' must be >0 bytes]\r\n");
- } else {
- g_buff_pos = 0;
- if (g_buff_size > MAX_DB_INPUT_SIZE) {
- th_printf("Supplied buffer size %d exceeds maximum of %d\n",
- g_buff_size, MAX_DB_INPUT_SIZE);
- } else {
- th_printf("m-[Expecting %d bytes]\r\n", g_buff_size);
- }
- }
- }
- } else if (strncmp(p_next, "print", EE_CMD_SIZE) == 0) {
- size_t i = 0;
- const size_t max = 8;
- for (; i < g_buff_size; ++i) {
- if ((i + max) % max == 0 || i == 0) {
- th_printf("m-buffer-");
- }
- /* N.B. Not every `printf` supports the spacing prefix! */
- th_printf("%02x", gp_buff[i]);
- if (((i + 1) % max == 0) || ((i + 1) == g_buff_size)) {
- th_printf("\r\n");
- } else {
- th_printf("-");
- }
- }
- if (i % max != 0) {
- th_printf("\r\n");
- }
- } else {
- size_t numbytes;
- char test[3];
- long res;
-
- /* Two hexdigits per byte */
- numbytes = th_strnlen(p_next, EE_CMD_SIZE);
-
- if ((numbytes & 1) != 0) {
- th_printf("e-[Insufficent number of hex digits]\r\n");
- return EE_ARG_CLAIMED;
- }
- test[2] = 0;
- for (size_t i = 0; i < numbytes;) {
- test[0] = p_next[i++];
- test[1] = p_next[i++];
- res = ee_hexdec(test);
- if (res < 0) {
- th_printf("e-[Invalid hex digit '%s']\r\n", test);
- return EE_ARG_CLAIMED;
- } else {
- gp_buff[g_buff_pos] = (uint8_t)res;
- g_buff_pos++;
- if (g_buff_pos == g_buff_size) {
- th_printf("m-load-done\r\n");
- /* Disregard the remainder of the digits when done. */
- return EE_ARG_CLAIMED;
- }
- }
- }
- }
- return EE_ARG_CLAIMED;
-}
-
-/**
- * @brief convert a hexidecimal string to a signed long
- * will not produce or process negative numbers except
- * to signal error.
- *
- * @param hex without decoration, case insensitive.
- *
- * @return -1 on error, or result (max (sizeof(long)*8)-1 bits)
- *
- */
-long ee_hexdec(char *hex) {
- char c;
- long dec = 0;
- long ret = 0;
-
- while (*hex && ret >= 0) {
- c = *hex++;
- if (c >= '0' && c <= '9') {
- dec = c - '0';
- } else if (c >= 'a' && c <= 'f') {
- dec = c - 'a' + 10;
- } else if (c >= 'A' && c <= 'F') {
- dec = c - 'A' + 10;
- } else {
- return -1;
- }
- ret = (ret << 4) + dec;
- }
- return ret;
-}
-
-/**
- * @brief get the buffer resulting from the last db command. Returns length 0
- * if the db command has not been used yet.
- *
- * @param buffer to fill with bytes from internal buffer filled by db commands.
- * @param maximum number of bytes to copy into provided buffer. This is
- * typically the length of the provided buffer.
- *
- * @return number of bytes copied from internal buffer.
- *
- */
-size_t ee_get_buffer(uint8_t* buffer, size_t max_len) {
- int len = max_len < g_buff_pos ? max_len : g_buff_pos;
- if (buffer != nullptr) {
- memcpy(buffer, gp_buff, len * sizeof(uint8_t));
- }
- return len;
-}
-
-uint8_t* ee_get_buffer_pointer() { return gp_buff; }
diff --git a/3rdparty/mlperftiny/api/internally_implemented.h
b/3rdparty/mlperftiny/api/internally_implemented.h
deleted file mode 100644
index 44583173f8..0000000000
--- a/3rdparty/mlperftiny/api/internally_implemented.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-This file is a modified version of the original EEMBC implementation of ee_lib.
-The file name has been changed and some functions removed.
-==============================================================================*/
-
-/// \file
-/// \brief Internally-implemented methods required to perform inference.
-
-#include <stddef.h>
-#include <stdint.h>
-
-#ifndef MLPERF_TINY_V0_1_API_INTERNALLY_IMPLEMENTED_H_
-#define MLPERF_TINY_V0_1_API_INTERNALLY_IMPLEMENTED_H_
-
-#define EE_MONITOR_VERSION "2.2.0"
-#define EE_FW_VERSION "ULPMark for tinyML Firmware V0.0.1"
-
-/* Version 1.0 of the benchmark only supports these models */
-#define EE_MODEL_VERSION_KWS01 "kws01"
-#define EE_MODEL_VERSION_VWW01 "vww01"
-#define EE_MODEL_VERSION_AD01 "ad01"
-#define EE_MODEL_VERSION_IC01 "ic01"
-
-typedef enum { EE_ARG_CLAIMED, EE_ARG_UNCLAIMED } arg_claimed_t;
-typedef enum { EE_STATUS_OK = 0, EE_STATUS_ERROR } ee_status_t;
-
-#define EE_DEVICE_NAME "dut"
-
-#define EE_CMD_SIZE 80u
-#define EE_CMD_DELIMITER " "
-#define EE_CMD_TERMINATOR '%'
-
-#define EE_CMD_NAME "name"
-#define EE_CMD_TIMESTAMP "timestamp"
-
-#define EE_MSG_READY "m-ready\r\n"
-#define EE_MSG_INIT_DONE "m-init-done\r\n"
-#define EE_MSG_NAME "m-name-%s-[%s]\r\n"
-
-#define EE_ERR_CMD "e-[Unknown command: %s]\r\n"
-
-void ee_serial_callback(char);
-void ee_serial_command_parser_callback(char*);
-void ee_benchmark_initialize(void);
-long ee_hexdec(char*);
-void ee_infer(size_t n, size_t n_warmup);
-size_t ee_get_buffer(uint8_t* buffer, size_t max_len);
-arg_claimed_t ee_buffer_parse(char* command);
-arg_claimed_t ee_profile_parse(char* command);
-uint8_t* ee_get_buffer_pointer();
-
-#endif /* MLPERF_TINY_V0_1_API_INTERNALLY_IMPLEMENTED_H_ */
diff --git a/3rdparty/mlperftiny/api/submitter_implemented.h
b/3rdparty/mlperftiny/api/submitter_implemented.h
deleted file mode 100644
index 4c832aa093..0000000000
--- a/3rdparty/mlperftiny/api/submitter_implemented.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-This file reflects a modified version of th_lib from EEMBC. All wrapped libc
-methods from th_libc.h and all testharness methods from th_lib.h are here.
-==============================================================================*/
-/// \file
-/// \brief Submitter-implemented methods required to perform inference.
-/// \detail All methods with names starting with th_ are to be implemented by
-/// the submitter. All basic I/O, inference and timer APIs must be implemented
-/// in order for the benchmark to output useful results, but some auxiliary
-/// methods default to an empty implementation. These methods are provided to
-/// enable submitter optimizations, and are not required for submission.
-
-#ifndef MLPERF_TINY_V0_1_API_SUBMITTER_IMPLEMENTED_H_
-#define MLPERF_TINY_V0_1_API_SUBMITTER_IMPLEMENTED_H_
-
-/// \brief These defines set logging prefixes for test harness integration.
-/// \detail This API is designed for performance evaluation only. In order to
-/// gather energy measurments we recommend using the EEMBC test suite.
-#define EE_MSG_TIMESTAMP "m-lap-us-%lu\r\n"
-#define TH_VENDOR_NAME_STRING "microTVM"
-
-// MAX_DB_INPUT_SIZE defined in CMakeList.txt
-#ifndef TH_MODEL_VERSION
-// See "internally_implemented.h" for a list
-#error "PLease set TH_MODEL_VERSION to one of the EE_MODEL_VERSION_* defines"
-// e.g.: to inform the user of model `ic01` use this:
-// #define TH_MODEL_VERSION EE_MODEL_VERSION_IC01
-#endif
-
-// Use this to switch between DUT-direct (perf) & DUT-inderrect (energy) modes
-#ifndef EE_CFG_ENERGY_MODE
-#define EE_CFG_ENERGY_MODE 0
-#endif
-
-// This is a visual cue to the user when reviewing logs or plugging an
-// unknown device into the system.
-#if EE_CFG_ENERGY_MODE == 1
-#define EE_MSG_TIMESTAMP_MODE "m-timestamp-mode-energy\r\n"
-#else
-#define EE_MSG_TIMESTAMP_MODE "m-timestamp-mode-performance\r\n"
-#endif
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/// \brief required core API
-void th_load_tensor();
-void th_results();
-void th_infer();
-void th_timestamp(void);
-void th_printf(const char* fmt, ...);
-char th_getchar();
-
-/// \brief optional API
-void th_serialport_initialize(void);
-void th_timestamp_initialize(void);
-void th_final_initialize(void);
-void th_pre();
-void th_post();
-void th_command_ready(char volatile* msg);
-
-/// \brief libc hooks
-int th_strncmp(const char* str1, const char* str2, size_t n);
-char* th_strncpy(char* dest, const char* src, size_t n);
-size_t th_strnlen(const char* str, size_t maxlen);
-char* th_strcat(char* dest, const char* src);
-char* th_strtok(/*@null@*/ char* str1, const char* sep);
-int th_atoi(const char* str);
-void* th_memset(void* b, int c, size_t len);
-void* th_memcpy(void* dst, const void* src, size_t n);
-int th_vprintf(const char* format, va_list ap);
-
-#endif // MLPERF_TINY_V0_1_API_SUBMITTER_IMPLEMENTED_H_
diff --git a/3rdparty/zlib b/3rdparty/zlib
deleted file mode 160000
index ef24c4c750..0000000000
--- a/3rdparty/zlib
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ef24c4c7502169f016dcd2a26923dbaf3216748c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4af253f47a..6fd8a2f451 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,10 +63,7 @@ tvm_option(USE_RTTI "Build with RTTI" ON)
tvm_option(USE_MSVC_MT "Build with MT" OFF)
tvm_option(INSTALL_DEV "Install compiler infrastructure" OFF)
tvm_option(HIDE_PRIVATE_SYMBOLS "Compile with -fvisibility=hidden." OFF)
-tvm_option(USE_FALLBACK_STL_MAP "Use TVM's POD compatible Map" OFF)
tvm_option(INDEX_DEFAULT_I64 "Defaults the index datatype to int64" ON)
-tvm_option(USE_LIBBACKTRACE "Use libbacktrace to supply linenumbers on stack
traces" AUTO)
-tvm_option(BACKTRACE_ON_SEGFAULT "Install a signal handler to print a
backtrace on segfault" OFF)
tvm_option(BUILD_STATIC_RUNTIME "Build static version of libtvm_runtime" OFF)
tvm_option(BUILD_DUMMY_LIBTVM "Build a dummy version of libtvm" OFF)
tvm_option(USE_PAPI "Use Performance Application Programming Interface (PAPI)
to read performance counters" OFF)
@@ -97,8 +94,6 @@ tvm_option(USE_MIOPEN "Build with ROCM:MIOpen" OFF)
tvm_option(USE_ROCBLAS "Build with ROCM:RoCBLAS" OFF)
tvm_option(USE_HIPBLAS "Build with ROCM:HIPBLAS" OFF)
tvm_option(USE_SORT "Build with sort support" ON)
-tvm_option(USE_NNPACK "Build with nnpack support" OFF)
-tvm_option(USE_LIBTORCH "Build with libtorch support" OFF)
tvm_option(USE_RANDOM "Build with random support" ON)
tvm_option(USE_CPP_RPC "Build CPP RPC" OFF)
tvm_option(USE_IOS_RPC "Build iOS RPC" OFF)
@@ -116,7 +111,6 @@ tvm_option(USE_RUST_EXT "Build with Rust based compiler
extensions, STATIC, DYNA
tvm_option(SUMMARIZE "Print CMake option summary after configuring" OFF)
tvm_option(USE_CLML "Build with CLML Codegen support" OFF)
tvm_option(USE_CLML_GRAPH_EXECUTOR "Build with CLML graph runtime" OFF)
-tvm_option(USE_UMA "Build with UMA support" OFF)
tvm_option(USE_MSC "Enable Multi-System Compiler" OFF)
tvm_option(USE_MRVL "Build with MRVL TVM support" OFF)
tvm_option(USE_NVSHMEM "Build with NVSHMEM support" OFF)
@@ -575,18 +569,6 @@ if(TVM_DEBUG_WITH_ABI_CHANGE)
target_compile_definitions(tvm_libinfo_objs PRIVATE
"TVM_DEBUG_WITH_ABI_CHANGE")
endif(TVM_DEBUG_WITH_ABI_CHANGE)
-if(USE_FALLBACK_STL_MAP)
- message(STATUS "Building with STL Map...")
- target_compile_definitions(tvm_objs PRIVATE "USE_FALLBACK_STL_MAP=1")
- target_compile_definitions(tvm_runtime_objs PRIVATE "USE_FALLBACK_STL_MAP=1")
- target_compile_definitions(tvm_libinfo_objs PRIVATE "USE_FALLBACK_STL_MAP=1")
-else()
- message(STATUS "Building with TVM Map...")
- target_compile_definitions(tvm_objs PRIVATE "USE_FALLBACK_STL_MAP=0")
- target_compile_definitions(tvm_runtime_objs PRIVATE "USE_FALLBACK_STL_MAP=0")
- target_compile_definitions(tvm_libinfo_objs PRIVATE "USE_FALLBACK_STL_MAP=0")
-endif(USE_FALLBACK_STL_MAP)
-
if(USE_THREADS AND NOT BUILD_FOR_HEXAGON)
message(STATUS "Build with thread support...")
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
@@ -614,17 +596,6 @@ endif()
# Set flags for clang
include(cmake/modules/ClangFlags.cmake)
-set(CRC16_INCLUDE_PATH "3rdparty/libcrc/include")
-target_include_directorieS(
- tvm_objs
- PRIVATE "${CRC16_INCLUDE_PATH}")
-target_include_directorieS(
- tvm_libinfo_objs
- PRIVATE "${CRC16_INCLUDE_PATH}")
-target_include_directorieS(
- tvm_runtime_objs
- PRIVATE "${CRC16_INCLUDE_PATH}")
-
set(TVM_TEST_LIBRARY_NAME tvm)
if (HIDE_PRIVATE_SYMBOLS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_library(tvm_allvisible SHARED $<TARGET_OBJECTS:tvm_objs>
$<TARGET_OBJECTS:tvm_runtime_objs> $<TARGET_OBJECTS:tvm_libinfo_objs>)
diff --git a/LICENSE b/LICENSE
index f6126d011a..26f73a2f65 100644
--- a/LICENSE
+++ b/LICENSE
@@ -203,19 +203,18 @@
------------------------------------------------------------------------------------
This product bundles various third-party components under other open source
licenses.
This section summarizes those components and their licenses. See licenses/
-for text of these licenses.
+and 3rdparty/tvm-ffi/licenses/ for text of these licenses.
Apache Software Foundation License 2.0
--------------------------------------
-3rdparty/dlpack
3rdparty/dmlc-core
3rdparty/OpenCL-Headers
-3rdparty/mlperftiny
3rdparty/nvbench (with LLVM exception)
3rdparty/cutlass_fpA_intB_gemm
3rdparty/tensorrt_llm
+3rdparty/tvm-ffi/3rdparty/dlpack
BSD 2-clause License
--------------------
@@ -233,20 +232,16 @@ BSD 2-clause License + zlib License
MIT License
-----------
-3rdparty/libcrc
-3rdparty/cma
3rdparty/compiler-rt/builtin_fp16.h
-3rdparty/cnpy
The Unlicense
-------------
3rdparty/rang
-3rdparty/zlib
BSD 3-Clause "New" or "Revised" License
---------------------------------------
3rdparty/cutlass
-3rdparty/libbacktrace
3rdparty/libflash_attn
+3rdparty/tvm-ffi/3rdparty/libbacktrace
diff --git a/cmake/config.cmake b/cmake/config.cmake
index 37259a7c54..aee2916440 100644
--- a/cmake/config.cmake
+++ b/cmake/config.cmake
@@ -126,15 +126,6 @@ set(USE_CPP_RTVM OFF)
# Whether to build the iOS RPC server application
set(USE_IOS_RPC OFF)
-# Whether embed stackvm into the runtime
-set(USE_STACKVM_RUNTIME OFF)
-
-# Whether enable pipeline executor.
-set(USE_PIPELINE_EXECUTOR OFF)
-
-# Whether to enable the profiler for the graph executor and vm
-set(USE_PROFILER ON)
-
# Whether build with LLVM support
# Requires LLVM version >= 4.0
#
@@ -285,15 +276,6 @@ set(USE_THRUST OFF)
# Whether use cuRAND
set(USE_CURAND OFF)
-# Whether to build the TensorFlow TVMDSOOp module
-set(USE_TF_TVMDSOOP OFF)
-
-# Whether to build the PyTorch custom class module
-set(USE_PT_TVMDSOOP OFF)
-
-# Whether to use STL's std::unordered_map or TVM's POD compatible Map
-set(USE_FALLBACK_STL_MAP OFF)
-
# Whether to enable Hexagon support
set(USE_HEXAGON OFF)
set(USE_HEXAGON_SDK /path/to/sdk)
@@ -391,14 +373,6 @@ set(FLASHINFER_GEN_CASUALS "false" "true")
# Enable to show a summary of TVM options
set(SUMMARIZE OFF)
-# Whether to use LibTorch as backend
-# To enable pass the path to the root libtorch (or PyTorch) directory
-# OFF or /path/to/torch/
-set(USE_LIBTORCH OFF)
-
-# Whether to use the Universal Modular Accelerator Interface
-set(USE_UMA OFF)
-
# Set custom Alloc Alignment for device allocated memory ndarray points to
set(USE_KALLOC_ALIGNMENT 64)
diff --git a/cmake/modules/LibInfo.cmake b/cmake/modules/LibInfo.cmake
index f286d9f7d9..abb2699fca 100644
--- a/cmake/modules/LibInfo.cmake
+++ b/cmake/modules/LibInfo.cmake
@@ -75,7 +75,6 @@ function(add_lib_info src_file)
TVM_INFO_USE_CUTLASS="${USE_CUTLASS}"
TVM_INFO_USE_AMX="${USE_AMX}"
TVM_INFO_USE_DNNL="${USE_DNNL}"
- TVM_INFO_USE_FALLBACK_STL_MAP="${USE_FALLBACK_STL_MAP}"
TVM_INFO_USE_GTEST="${USE_GTEST}"
TVM_INFO_USE_HEXAGON="${USE_HEXAGON}"
TVM_INFO_USE_HEXAGON_RPC="${USE_HEXAGON_RPC}"
@@ -84,8 +83,6 @@ function(add_lib_info src_file)
TVM_INFO_USE_HEXAGON_EXTERNAL_LIBS="${USE_HEXAGON_EXTERNAL_LIBS}"
TVM_INFO_USE_IOS_RPC="${USE_IOS_RPC}"
TVM_INFO_USE_KHRONOS_SPIRV="${USE_KHRONOS_SPIRV}"
- TVM_INFO_USE_LIBBACKTRACE="${USE_LIBBACKTRACE}"
- TVM_INFO_USE_LIBTORCH="${USE_LIBTORCH}"
TVM_INFO_USE_LLVM="${USE_LLVM}"
TVM_INFO_USE_MLIR="${USE_MLIR}"
TVM_INFO_USE_METAL="${USE_METAL}"
@@ -93,7 +90,6 @@ function(add_lib_info src_file)
TVM_INFO_USE_MKL="${USE_MKL}"
TVM_INFO_USE_MRVL="${USE_MRVL}"
TVM_INFO_USE_MSVC_MT="${USE_MSVC_MT}"
- TVM_INFO_USE_NNPACK="${USE_NNPACK}"
TVM_INFO_USE_OPENCL="${USE_OPENCL}"
TVM_INFO_USE_OPENCL_ENABLE_HOST_PTR="${USE_OPENCL_ENABLE_HOST_PTR}"
TVM_INFO_USE_OPENCL_GTEST="${USE_OPENCL_GTEST}"
@@ -123,13 +119,11 @@ function(add_lib_info src_file)
TVM_INFO_USE_CLML="${USE_CLML}"
TVM_INFO_USE_CLML_GRAPH_EXECUTOR="${USE_CLML_GRAPH_EXECUTOR}"
TVM_INFO_USE_TVM_CLML_VERSION="${CLML_VERSION_MAJOR}"
- TVM_INFO_USE_UMA="${USE_UMA}"
TVM_INFO_USE_MSC="${USE_MSC}"
TVM_INFO_USE_CCACHE="${USE_CCACHE}"
TVM_INFO_USE_NVSHMEM="${USE_NVSHMEM}"
TVM_INFO_USE_NNAPI_CODEGEN="${USE_NNAPI_CODEGEN}"
TVM_INFO_USE_NNAPI_RUNTIME="${USE_NNAPI_RUNTIME}"
- TVM_INFO_BACKTRACE_ON_SEGFAULT="${BACKTRACE_ON_SEGFAULT}"
)
endfunction()
diff --git a/docs/how_to/dev/setup_rpc_system.rst
b/docs/how_to/dev/setup_rpc_system.rst
index 58c678a6bd..d5ea8c902f 100644
--- a/docs/how_to/dev/setup_rpc_system.rst
+++ b/docs/how_to/dev/setup_rpc_system.rst
@@ -107,7 +107,6 @@ After executing commands like something below under the
root directory of TVM re
# You maybe need to enable other options, e.g., USE_OPENCL, USE_xPU.
$ sed -i "s|USE_LLVM.*)|USE_LLVM OFF)|" config.cmake
- $ sed -i "s|USE_LIBBACKTRACE.*)|USE_LIBBACKTRACE OFF)|" config.cmake
$ cmake -DCMAKE_TOOLCHAIN_FILE=/YYY/aarch64-linux-gnu.cmake
-DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . -j -- runtime
diff --git a/licenses/LICENSE.cma.txt b/licenses/LICENSE.cma.txt
deleted file mode 100644
index 00028209d1..0000000000
--- a/licenses/LICENSE.cma.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-COPYRIGHT (C) 2017 Institute of Electronics and Computer Science (EDI), Latvia.
-AUTHOR: Rihards Novickis ([email protected])
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/licenses/LICENSE.cnpy.txt b/licenses/LICENSE.cnpy.txt
deleted file mode 100644
index e60eadbccb..0000000000
--- a/licenses/LICENSE.cnpy.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) Carl Rogers, 2011
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/licenses/LICENSE.libcrc.txt b/licenses/LICENSE.libcrc.txt
deleted file mode 100644
index 0552660c48..0000000000
--- a/licenses/LICENSE.libcrc.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 1999-2016 Lammert Bies
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/licenses/LICENSE.zlib.txt b/licenses/LICENSE.zlib.txt
deleted file mode 100644
index b517acd576..0000000000
--- a/licenses/LICENSE.zlib.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright notice:
-
- (C) 1995-2024 Jean-loup Gailly and Mark Adler
-
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software.
-
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it
- freely, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-
- Jean-loup Gailly Mark Adler
- [email protected] [email protected]
diff --git a/python/tvm/testing/utils.py b/python/tvm/testing/utils.py
index 9ac01118df..9b511fd849 100644
--- a/python/tvm/testing/utils.py
+++ b/python/tvm/testing/utils.py
@@ -1000,9 +1000,6 @@ requires_cutlass = Feature("cutlass", "CUTLASS",
cmake_flag="USE_CUTLASS")
# Mark a test as requiring rpc to run
requires_rpc = Feature("rpc", "RPC", cmake_flag="USE_RPC")
-# Mark a test as requiring libtorch to run
-requires_libtorch = Feature("libtorch", "LibTorch", cmake_flag="USE_LIBTORCH")
-
# Mark a test as requiring the MRVL Library
requires_mrvl = Feature("mrvl", "Marvell", cmake_flag="USE_MRVL")
diff --git a/src/runtime/hexagon/README.md b/src/runtime/hexagon/README.md
index 7c7528d814..b84185c5b5 100644
--- a/src/runtime/hexagon/README.md
+++ b/src/runtime/hexagon/README.md
@@ -66,7 +66,6 @@ USE_HEXAGON=ON
USE_HEXAGON_ARCH=v65|v66|v68|v69|v73|v75
USE_HEXAGON_SDK=/path/to/sdk
USE_RPC=OFF
-USE_LIBBACKTRACE=OFF
```
As mentioned before, only build the `runtime` component (e.g. `make runtime`).
diff --git a/src/support/libinfo.cc b/src/support/libinfo.cc
index d0646ee8b0..8907e589ca 100644
--- a/src/support/libinfo.cc
+++ b/src/support/libinfo.cc
@@ -146,10 +146,6 @@
#define TVM_INFO_HIDE_PRIVATE_SYMBOLS "NOT-FOUND"
#endif
-#ifndef TVM_INFO_USE_FALLBACK_STL_MAP
-#define TVM_INFO_USE_FALLBACK_STL_MAP "NOT-FOUND"
-#endif
-
#ifndef TVM_INFO_USE_BYODT_POSIT
#define TVM_INFO_USE_BYODT_POSIT "NOT-FOUND"
#endif
@@ -202,10 +198,6 @@
#define TVM_INFO_USE_SORT "NOT-FOUND"
#endif
-#ifndef TVM_INFO_USE_NNPACK
-#define TVM_INFO_USE_NNPACK "NOT-FOUND"
-#endif
-
#ifndef TVM_INFO_USE_RANDOM
#define TVM_INFO_USE_RANDOM "NOT-FOUND"
#endif
@@ -306,7 +298,6 @@ TVM_DLL ffi::Map<ffi::String, ffi::String> GetLibInfo() {
{"USE_CUTLASS", TVM_INFO_USE_CUTLASS},
{"USE_AMX", TVM_INFO_USE_AMX},
{"USE_DNNL", TVM_INFO_USE_DNNL},
- {"USE_FALLBACK_STL_MAP", TVM_INFO_USE_FALLBACK_STL_MAP},
{"USE_GTEST", TVM_INFO_USE_GTEST},
{"USE_HEXAGON", TVM_INFO_USE_HEXAGON},
{"USE_HEXAGON_RPC", TVM_INFO_USE_HEXAGON_RPC},
@@ -315,8 +306,6 @@ TVM_DLL ffi::Map<ffi::String, ffi::String> GetLibInfo() {
{"USE_HEXAGON_EXTERNAL_LIBS", TVM_INFO_USE_HEXAGON_EXTERNAL_LIBS},
{"USE_IOS_RPC", TVM_INFO_USE_IOS_RPC},
{"USE_KHRONOS_SPIRV", TVM_INFO_USE_KHRONOS_SPIRV},
- {"USE_LIBBACKTRACE", TVM_INFO_USE_LIBBACKTRACE},
- {"USE_LIBTORCH", TVM_INFO_USE_LIBTORCH},
{"USE_LLVM", TVM_INFO_USE_LLVM},
{"USE_MLIR", TVM_INFO_USE_MLIR},
{"USE_METAL", TVM_INFO_USE_METAL},
@@ -324,7 +313,6 @@ TVM_DLL ffi::Map<ffi::String, ffi::String> GetLibInfo() {
{"USE_MKL", TVM_INFO_USE_MKL},
{"USE_MRVL", TVM_INFO_USE_MRVL},
{"USE_MSVC_MT", TVM_INFO_USE_MSVC_MT},
- {"USE_NNPACK", TVM_INFO_USE_NNPACK},
{"USE_OPENCL", TVM_INFO_USE_OPENCL},
{"USE_OPENCL_ENABLE_HOST_PTR", TVM_INFO_USE_OPENCL_ENABLE_HOST_PTR},
{"USE_OPENCL_EXTN_QCOM", TVM_INFO_USE_OPENCL_EXTN_QCOM},
@@ -355,13 +343,11 @@ TVM_DLL ffi::Map<ffi::String, ffi::String> GetLibInfo() {
{"USE_CLML", TVM_INFO_USE_CLML},
{"TVM_CLML_VERSION", TVM_INFO_USE_TVM_CLML_VERSION},
{"USE_CLML_GRAPH_EXECUTOR", TVM_INFO_USE_CLML_GRAPH_EXECUTOR},
- {"USE_UMA", TVM_INFO_USE_UMA},
{"USE_MSC", TVM_INFO_USE_MSC},
{"USE_CCACHE", TVM_INFO_USE_CCACHE},
{"USE_NVSHMEM", TVM_INFO_USE_NVSHMEM},
{"USE_NNAPI_CODEGEN", TVM_INFO_USE_NNAPI_CODEGEN},
{"USE_NNAPI_RUNTIME", TVM_INFO_USE_NNAPI_RUNTIME},
- {"BACKTRACE_ON_SEGFAULT", TVM_INFO_BACKTRACE_ON_SEGFAULT},
};
return result;
}
diff --git a/tests/scripts/task_config_build_arm.sh
b/tests/scripts/task_config_build_arm.sh
index 3f0505310b..b9a0e34f98 100755
--- a/tests/scripts/task_config_build_arm.sh
+++ b/tests/scripts/task_config_build_arm.sh
@@ -30,6 +30,4 @@ echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake
echo set\(USE_ARM_COMPUTE_LIB ON\) >> config.cmake
echo set\(USE_ARM_COMPUTE_LIB_GRAPH_EXECUTOR "/opt/acl"\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
-echo set\(USE_UMA ON\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_cpu.sh
b/tests/scripts/task_config_build_cpu.sh
index cd84f5ded4..0678e81877 100755
--- a/tests/scripts/task_config_build_cpu.sh
+++ b/tests/scripts/task_config_build_cpu.sh
@@ -41,9 +41,6 @@ fi
echo set\(USE_TENSORFLOW_PATH \"/tensorflow\"\) >> config.cmake
echo set\(USE_FLATBUFFERS_PATH \"/flatbuffers\"\) >> config.cmake
-echo set\(USE_LIBBACKTRACE COMPILE\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(USE_UMA ON\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
echo set\(USE_MSC ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_gpu.sh
b/tests/scripts/task_config_build_gpu.sh
index f306bdf8bf..dd35f76453 100755
--- a/tests/scripts/task_config_build_gpu.sh
+++ b/tests/scripts/task_config_build_gpu.sh
@@ -35,12 +35,9 @@ echo set\(USE_SORT ON\) >> config.cmake
echo set\(USE_BLAS openblas\) >> config.cmake
echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake
echo set\(USE_TENSORRT_CODEGEN ON\) >> config.cmake
-echo set\(USE_LIBBACKTRACE AUTO\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
echo set\(HIDE_PRIVATE_SYMBOLS ON\) >> config.cmake
-echo set\(USE_PIPELINE_EXECUTOR ON\) >> config.cmake
echo set\(USE_CUTLASS ON\) >> config.cmake
echo set\(USE_MSC ON\) >> config.cmake
echo set\(CMAKE_CUDA_ARCHITECTURES 75\) >> config.cmake
diff --git a/tests/scripts/task_config_build_gpu_other.sh
b/tests/scripts/task_config_build_gpu_other.sh
index 115089207d..0d5d2030c4 100755
--- a/tests/scripts/task_config_build_gpu_other.sh
+++ b/tests/scripts/task_config_build_gpu_other.sh
@@ -27,8 +27,6 @@ cp ../cmake/config.cmake .
echo set\(USE_OPENCL ON\) >> config.cmake
echo set\(USE_ROCM ON\) >> config.cmake
-echo set\(USE_LIBBACKTRACE OFF\) >> config.cmake
echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_hexagon.sh
b/tests/scripts/task_config_build_hexagon.sh
index ce0a7fd5f6..ca9b02d798 100755
--- a/tests/scripts/task_config_build_hexagon.sh
+++ b/tests/scripts/task_config_build_hexagon.sh
@@ -40,6 +40,5 @@ fi
echo set\(USE_HEXAGON "ON"\) >> config.cmake
echo set\(USE_HEXAGON_SDK "${HEXAGON_SDK_ROOT}"\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
echo set\(USE_HEXAGON_QHL ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_i386.sh
b/tests/scripts/task_config_build_i386.sh
index 675b604f35..c038fa6076 100755
--- a/tests/scripts/task_config_build_i386.sh
+++ b/tests/scripts/task_config_build_i386.sh
@@ -28,6 +28,4 @@ echo set\(USE_RPC ON\) >> config.cmake
echo set\(USE_LLVM llvm-config-10\) >> config.cmake
echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake
echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(BACKTRACE_ON_SEGFAULT ON\) >> config.cmake
-echo set\(USE_UMA OFF\) >> config.cmake
echo set\(SUMMARIZE ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_static.sh
b/tests/scripts/task_config_build_static.sh
deleted file mode 100755
index ed4ce73a28..0000000000
--- a/tests/scripts/task_config_build_static.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -euxo pipefail
-
-BUILD_DIR=$1
-mkdir -p "$BUILD_DIR"
-cd "$BUILD_DIR"
-cp ../cmake/config.cmake .
-
-echo set\(USE_LIBBACKTRACE OFF\) >> config.cmake
-echo set\(USE_SORT ON\) >> config.cmake
-echo set\(USE_CUDA OFF\) >> config.cmake
-echo set\(BUILD_STATIC_RUNTIME ON\) >> config.cmake
-echo set\(USE_FALLBACK_STL_MAP ON\) >> config.cmake
-echo set\(USE_MSVC_MT ON\) >> config.cmake
-echo set\(USE_RPC OFF\) >> config.cmake