Skip to content
Merged
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
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,6 @@ if(USE_RPC)
list(APPEND RUNTIME_SRCS ${RUNTIME_RPC_SRCS})
endif(USE_RPC)

tvm_file_glob(GLOB STACKVM_RUNTIME_SRCS src/runtime/stackvm/*.cc)
tvm_file_glob(GLOB STACKVM_CODEGEN_SRCS src/target/stackvm/*.cc)
list(APPEND COMPILER_SRCS ${STACKVM_CODEGEN_SRCS})
if(USE_STACKVM_RUNTIME)
message(STATUS "Build with stackvm support in runtime...")
list(APPEND RUNTIME_SRCS ${STACKVM_RUNTIME_SRCS})
else()
list(APPEND COMPILER_SRCS ${STACKVM_RUNTIME_SRCS})
endif(USE_STACKVM_RUNTIME)

if(USE_CUDA AND USE_NCCL)
message(STATUS "Build with NCCL...")
find_nccl(${USE_NCCL})
Expand Down
45 changes: 0 additions & 45 deletions python/tvm/contrib/stackvm.py

This file was deleted.

9 changes: 0 additions & 9 deletions python/tvm/runtime/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,15 +517,6 @@ def export_library(
if isinstance(file_name, Path):
file_name = str(file_name)

if self.type_key == "stackvm":
if not file_name.endswith(".stackvm"):
raise ValueError(
f"Module[{self.type_key}]: can only be saved as stackvm format."
"did you build with LLVM enabled?"
)
self.save(file_name)
return

modules = self._collect_dso_modules()
if workspace_dir is None:
temp = _utils.tempdir()
Expand Down
3 changes: 1 addition & 2 deletions rust/tvm-sys/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ impl<'a> From<&'a str> for DeviceType {
match type_str {
"cpu" => DeviceType::CPU,
"llvm" => DeviceType::CPU,
"stackvm" => DeviceType::CPU,
"cuda" => DeviceType::CUDA,
"nvptx" => DeviceType::CUDA,
"cl" => DeviceType::OpenCL,
Expand Down Expand Up @@ -208,7 +207,7 @@ macro_rules! impl_tvm_device {
}

impl_tvm_device!(
DLDeviceType_kDLCPU: [cpu, llvm, stackvm],
DLDeviceType_kDLCPU: [cpu, llvm],
DLDeviceType_kDLCUDA: [cuda, nvptx],
DLDeviceType_kDLOpenCL: [cl],
DLDeviceType_kDLMetal: [metal],
Expand Down
2 changes: 1 addition & 1 deletion rust/tvm-sys/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ macro_rules! impl_tvm_device {
}

impl_tvm_device!(
DLDeviceType_kDLCPU: [cpu, llvm, stackvm],
DLDeviceType_kDLCPU: [cpu, llvm],
DLDeviceType_kDLCUDA: [cuda, nvptx],
DLDeviceType_kDLOpenCL: [cl],
DLDeviceType_kDLMetal: [metal],
Expand Down
2 changes: 0 additions & 2 deletions src/runtime/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ bool RuntimeEnabled(const String& target_str) {
f_name = "target.runtime.tflite";
} else if (target == "vulkan") {
f_name = "device_api.vulkan";
} else if (target == "stackvm") {
f_name = "target.build.stackvm";
} else if (target == "rpc") {
f_name = "device_api.rpc";
} else if (target == "hexagon") {
Expand Down
Loading
Loading