apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.75k stars 3.47k forks source link

[Bug] use of undeclared identifier 'kDLROCMHost'; did you mean 'kDLCUDAHost'? #14222

Open yurivict opened 1 year ago

yurivict commented 1 year ago
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/src/arith/canonical_simplify.cc:24:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/arith/analyzer.h:27:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/arith/int_set.h:27:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/ir/expr.h:27:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/ir/span.h:27:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/node/node.h:37:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/node/reflection.h:26:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/node/structural_equal.h:26:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/node/functor.h:27:
In file included from /usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/runtime/object.h:26:
/usr/ports/misc/tvm/work/tvm-0.11.0/include/tvm/runtime/c_runtime_api.h:137:15: error: use of undeclared identifier 'kDLROCMHost'; did you mean 'kDLCUDAHost'?
static_assert(kDLROCMHost == 11, TVM_HARCODED_INTEGER_CHANGED_MSG);
              ^~~~~~~~~~~
              kDLCUDAHost
/usr/ports/misc/tvm/work/tvm-0.11.0/3rdparty/dlpack/include/dlpack/dlpack.h:46:3: note: 'kDLCUDAHost' declared here
  kDLCUDAHost = 3,
  ^

Version: 0.11.0 clang-14 FreeBSD 13.1

Albert-Zhao-2020 commented 1 year ago

Using git submodule update conmmand to update submodule,it will work