×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

运行python setup.py install时报错 已完结 幺白幺木2022-07-21 18:54:45 回复 5 查看 使用求助
运行python setup.py install时报错
分享到:

【寒武纪硬件产品型号】必填*:MLU270


【使用操作系统】必填*:ubuntu


【使用驱动版本】必填*:v4.20.6


【使用AI框架】必填*:Pytorch


【出错信息】必填*:

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv_bn_relu.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/and.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlDe ors.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlDe ors.h:3:10: fatal error: ATen/ATen.h: No such file or directory

 #include <ATen/ATen.h>

          ^~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/core/tensor_util.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/core/tensor_util.h:2:10: fatal error: torch/csrc/jit/ir.h: No such file or directory

 #include <torch/csrc/jit/ir.h>

          ^~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/guard_impl.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/device/guard_impl.h:3:10: fatal error: c10/core/impl/DeviceGuardImplInterface.h: No such file or directory

 #include <c10/core/impl/DeviceGuardImplInterface.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlAlgorithms.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlAlgorithms.h:3:10: fatal error: ATen/ATen.h: No such file or directory

 #include <ATen/ATen.h>

          ^~~~~~~~~~~~~

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/addpad.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv3d.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:518: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/addpad.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/addpad.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

aten/CMakeFiles/aten_mlu.dir/build.make:254: recipe for target 'aten/CMakeFiles/aten_mlu.dir/core/tensor_util.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/core/tensor_util.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv1d.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /torch/src/catch/torch_mlu/csrc/aten/core/allocator.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/core/allocator.h:3:10: fatal error: c10/core/Allocator.h: No such file or directory

 #include <c10/core/Allocator.h>

          ^~~~~~~~~~~~~~~~~~~~~~

aten/CMakeFiles/aten_mlu.dir/build.make:326: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/guard_impl.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/guard_impl.cpp.o] Error 1

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/core/profiler_mlu.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/core/profiler_mlu.h:1:10: fatal error: torch/csrc/autograd/profiler.h: No such file or directory

 #include <torch/csrc/autograd/profiler.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:62: recipe for target 'aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlAlgorithms.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlAlgorithms.cpp.o] Error 1

/torch/src/catch/torch_mlu/csrc/aten/core/tensor_impl.cpp:1:10: fatal error: c10/core/ScalarType.h: No such file or directory

 #include <c10/core/ScalarType.h>

          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:86: recipe for target 'aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlDe ors.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlDe ors.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:542: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/and.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/and.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:830: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv_bn_relu.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv_bn_relu.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:806: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv3d.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv3d.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/exceptions.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/device/exceptions.h:3:10: fatal error: c10/util/Exception.h: No such file or directory

 #include <c10/util/Exception.h>

          ^~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/types.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/device/types.h:3:10: fatal error: c10/core/ScalarType.h: No such file or directory

 #include <c10/core/ScalarType.h>

          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/add.cpp:1:10: fatal error: ATen/ExpandUtils.h: No such file or directory

 #include <ATen/ExpandUtils.h>

          ^~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:734: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv1d.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv1d.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:158: recipe for target 'aten/CMakeFiles/aten_mlu.dir/core/allocator.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/core/allocator.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:206: recipe for target 'aten/CMakeFiles/aten_mlu.dir/core/profiler_mlu.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/core/profiler_mlu.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/as_strided.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

aten/CMakeFiles/aten_mlu.dir/build.make:230: recipe for target 'aten/CMakeFiles/aten_mlu.dir/core/tensor_impl.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/core/tensor_impl.cpp.o] Error 1

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/add_variable.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/clamp.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:302: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/exceptions.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/exceptions.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:470: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/add.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/add.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:398: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/types.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/types.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/clone.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/activation.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:566: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/as_strided.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/as_strided.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/big_topk.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:494: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/add_variable.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/add_variable.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv_forward_select_best_kernel.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/convtranspose3d.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:662: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/clamp.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/clamp.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/abs.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

aten/CMakeFiles/aten_mlu.dir/build.make:686: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/clone.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/clone.cpp.o] Error 1

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv2d_variable.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:446: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/activation.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/activation.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/concat.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:614: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/big_topk.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/big_topk.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:854: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv_forward_select_best_kernel.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv_forward_select_best_kernel.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:902: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/convtranspose3d.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/convtranspose3d.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:422: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/abs.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/abs.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:782: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv2d_variable.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv2d_variable.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:710: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/concat.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/concat.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/bmm.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/bert_squad.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/conv2d.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/operators/cnml/convtranspose2d.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/operators/cnml/cnml_kernel.h:3:10: fatal error: torch/csrc/utils/memory.h: No such file or directory

 #include <torch/csrc/utils/memory.h>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:638: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/bmm.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/bmm.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:758: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv2d.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/conv2d.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:590: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/bert_squad.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/bert_squad.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:878: recipe for target 'aten/CMakeFiles/aten_mlu.dir/operators/cnml/convtranspose2d.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/operators/cnml/convtranspose2d.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlQuantify.cpp:2:0:

/torch/src/catch/torch_mlu/csrc/aten/device/exceptions.h:3:10: fatal error: c10/util/Exception.h: No such file or directory

 #include <c10/util/Exception.h>

          ^~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:134: recipe for target 'aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlQuantify.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlQuantify.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/device.cpp:1:0:

/torch/src/catch/torch_mlu/csrc/aten/device/device.h:5:10: fatal error: c10/core/Device.h: No such file or directory

 #include <c10/core/Device.h>

          ^~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:278: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/device.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/device.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/notifier.h:7:0,

                 from /torch/src/catch/torch_mlu/csrc/aten/device/notifier.cpp:1:

/torch/src/catch/torch_mlu/csrc/aten/device/device.h:5:10: fatal error: c10/core/Device.h: No such file or directory

 #include <c10/core/Device.h>

          ^~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:350: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/notifier.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/notifier.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/queue.h:5:0,

                 from /torch/src/catch/torch_mlu/csrc/aten/device/queue.cpp:1:

/torch/src/catch/torch_mlu/csrc/aten/device/device.h:5:10: fatal error: c10/core/Device.h: No such file or directory

 #include <c10/core/Device.h>

          ^~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:374: recipe for target 'aten/CMakeFiles/aten_mlu.dir/device/queue.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/device/queue.cpp.o] Error 1

In file included from /torch/src/catch/torch_mlu/csrc/aten/device/queue.h:5:0,

                 from /torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlHandle.h:4,

                 from /torch/src/catch/torch_mlu/csrc/aten/cnnl/cnnlHandle.cpp:1:

/torch/src/catch/torch_mlu/csrc/aten/device/device.h:5:10: fatal error: c10/core/Device.h: No such file or directory

 #include <c10/core/Device.h>

          ^~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from /torch/src/catch/torch_mlu/csrc/aten/core/caching_allocator.cpp:13:0:

/torch/src/catch/torch_mlu/csrc/aten/core/caching_allocator.h:3:10: fatal error: c10/core/Allocator.h: No such file or directory

 #include <c10/core/Allocator.h>

          ^~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

aten/CMakeFiles/aten_mlu.dir/build.make:110: recipe for target 'aten/CMakeFiles/aten_mlu.dir/cnnl/cnnlHandle.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten

_mlu.dir/cnnl/cnnlHandle.cpp.o] Error 1

aten/CMakeFiles/aten_mlu.dir/build.make:182: recipe for target 'aten/CMakeFiles/aten_mlu.dir/core/caching_allocator.cpp.o' failed

make[2]: *** [aten/CMakeFiles/aten_mlu.dir/core/caching_allocator.cpp.o] Error 1

CMakeFiles/Makefile2:124: recipe for target 'aten/CMakeFiles/aten_mlu.dir/all' failed

make[1]: *** [aten/CMakeFiles/aten_mlu.dir/all] Error 2

Makefile:129: recipe for target 'all' failed

make: *** [all] Error 2

Failed to run 'bash ../ /build_catch_lib.sh'

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭