Skip to content
Open
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
4 changes: 3 additions & 1 deletion backend/npu.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ def commonir_to_linkedir(commonir, metadata, opt, *, named_ops=False):
content = re.sub(pattern, r"\1 // to \2", content)

if opt.debug or dump_ir:
# todo 调整commonir 路径。
cmd_list = [
_get_dicp_opt_path(),
"kernel.ttshared.mlir",
Expand Down Expand Up @@ -1378,7 +1379,8 @@ def _format_of(ty):
#define PY_SSIZE_T_CLEAN
#include <Python.h>
{'#include <torch_npu/csrc/framework/OpCommand.h>' if enable_taskqueue else ''}
#include "experiment/runtime/runtime/rt.h"
// #include "experiment/runtime/runtime/rt.h"
#include "/usr/local/Ascend/cann/pkg_inc/runtime/runtime/rt.h"
{extract_device_print_code_from_cann() if enable_device_print else ''}

#define TENSOR_KIND_INPUT 0
Expand Down
3 changes: 2 additions & 1 deletion backend/npu_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#include <tuple>
#include <unordered_map>

#include "experiment/runtime/runtime/rt.h"
// #include "experiment/runtime/runtime/rt.h"
#include "/usr/local/Ascend/cann/pkg_inc/runtime/runtime/rt.h"

// Use map to differentiate same name functions from different binary
static std::unordered_map<std::string, size_t> registered_names;
Expand Down
Loading
Loading