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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ tvm_file_glob(GLOB CODEGEN_SRCS
src/backend/trn/codegen/*.cc
src/backend/trn/op/*.cc
src/backend/trn/transform/*.cc
src/backend/vulkan/codegen/register.cc
src/backend/vulkan/codegen/target_kind.cc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The file src/target/llvm/intrin_rule_nvptx.cc has been renamed to src/backend/cuda/codegen/llvm/intrin_rule_nvptx.cc. However, because CMakeLists.txt only globs src/backend/cuda/codegen/*.cc (non-recursively), and cmake/modules/LLVM.cmake likely only globs src/target/llvm/*.cc, this file is now excluded from the build. To ensure the NVPTX intrinsic rules are compiled, we should add src/backend/cuda/codegen/llvm/*.cc to the CODEGEN_SRCS list.

  src/backend/cuda/codegen/llvm/*.cc
  src/backend/vulkan/codegen/target_kind.cc

src/backend/vulkan/codegen/vulkan_fallback_module.cc
src/backend/webgpu/codegen/*.cc
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief CUDA compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
35 changes: 0 additions & 35 deletions src/backend/cuda/op/register.cc

This file was deleted.

4 changes: 4 additions & 0 deletions src/backend/cuda/op/target_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*
* builtin intrinsic operators specific to CUDA target.
*/
#include <tvm/ffi/function.h>
#include <tvm/runtime/base.h>
#include <tvm/tirx/builtin.h>
#include <tvm/tirx/op.h>
#include <tvm/tirx/op_attr_types.h>
Expand Down Expand Up @@ -597,6 +599,8 @@ void RegisterDeviceIntrinsicAliases() {

#undef TIRX_DEFINE_BUILTIN_FUNC

TVM_FFI_STATIC_INIT_BLOCK() { RegisterCudaTargetBuiltins(); }

} // namespace builtin
} // namespace tirx
} // namespace tvm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief Hexagon compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief Metal compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
35 changes: 0 additions & 35 deletions src/backend/metal/op/register.cc

This file was deleted.

4 changes: 4 additions & 0 deletions src/backend/metal/op/target_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*
* builtin intrinsic operators specific to Metal target.
*/
#include <tvm/ffi/function.h>
#include <tvm/runtime/base.h>
#include <tvm/tirx/op.h>
#include <tvm/tirx/op_attr_types.h>

Expand Down Expand Up @@ -57,6 +59,8 @@ TIRX_DEFINE_BUILTIN_FUNC(simdgroup_multiply_accumulate)

#undef TIRX_DEFINE_BUILTIN_FUNC

TVM_FFI_STATIC_INIT_BLOCK() { RegisterMetalTargetBuiltins(); }

} // namespace builtin
} // namespace tirx
} // namespace tvm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief OpenCL compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief ROCm compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief Trainium compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
35 changes: 0 additions & 35 deletions src/backend/trn/op/register.cc

This file was deleted.

4 changes: 4 additions & 0 deletions src/backend/trn/op/target_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*
* builtin intrinsic operators specific to Trainium target.
*/
#include <tvm/ffi/function.h>
#include <tvm/runtime/base.h>
#include <tvm/tirx/builtin.h>
#include <tvm/tirx/op.h>
#include <tvm/tirx/op_attr_types.h>
Expand Down Expand Up @@ -161,6 +163,8 @@ void RegisterNKIIntrinsicAliases() {

#undef TIRX_DEFINE_BUILTIN_FUNC

TVM_FFI_STATIC_INIT_BLOCK() { RegisterTRNTargetBuiltins(); }

} // namespace builtin
} // namespace tirx
} // namespace tvm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief Vulkan compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*!
* \file register.cc
* \file target_kind.cc
* \brief WebGPU compiler backend static registration.
*/
#include <dlpack/dlpack.h>
Expand Down
1 change: 0 additions & 1 deletion src/target/opt/README

This file was deleted.

Loading