zyh3826 opened a new issue #8033:
URL: https://github.com/apache/tvm/issues/8033
I set these configs at build/config.cmake:
> set(USE_CUDA ON)
set(USE_GRAPH_EXECUTOR ON)
set(USE_PROFILER ON)
set(USE_RELAY_DEBUG ON)
set(USE_LLVM ON)
I use this cmd to build:
> cd build
cmake ..
make -j4
but there are some error:
> In file included from
/root/tvm/src/arith/../tir/transforms/ir_utils.h:27:0,
from /root/tvm/src/arith/int_constraints.cc:36:
/root/tvm/include/tvm/runtime/device_api.h: In function 'const char*
tvm::runtime::DeviceName(int)':
/root/tvm/include/tvm/runtime/device_api.h:234:10: error: 'kDLGPU' was not
declared in this scope
case kDLGPU:
^~~~~~
/root/tvm/include/tvm/runtime/device_api.h:234:10: note: suggested
alternative: 'kDLCPU'
case kDLGPU:
^~~~~~
kDLCPU
/root/tvm/include/tvm/runtime/device_api.h:236:10: error: 'kDLCPUPinned' was
not declared in this scope
case kDLCPUPinned:
^~~~~~~~~~~~
/root/tvm/include/tvm/runtime/device_api.h:236:10: note: suggested
alternative: 'kDLCPU'
case kDLCPUPinned:
^~~~~~~~~~~~
kDLCPU
In file included from /root/tvm/src/runtime/c_runtime_api.cc:27:0:
/root/tvm/include/tvm/runtime/device_api.h: In function 'const char*
tvm::runtime::DeviceName(int)':
/root/tvm/include/tvm/runtime/device_api.h:234:10: error: 'kDLGPU' was not
declared in this scope
case kDLGPU:
^~~~~~
/root/tvm/include/tvm/runtime/device_api.h:234:10: note: suggested
alternative: 'kDLCPU'
case kDLGPU:
^~~~~~
kDLCPU
/root/tvm/include/tvm/runtime/device_api.h:236:10: error: 'kDLCPUPinned' was
not declared in this scope
case kDLCPUPinned:
^~~~~~~~~~~~
/root/tvm/include/tvm/runtime/device_api.h:236:10: note: suggested
alternative: 'kDLCPU'
case kDLCPUPinned:
^~~~~~~~~~~~
kDLCPU
CMakeFiles/tvm_runtime_objs.dir/build.make:75: recipe for target
'CMakeFiles/tvm_runtime_objs.dir/src/runtime/c_runtime_api.cc.o' failed
make[2]: ***
[CMakeFiles/tvm_runtime_objs.dir/src/runtime/c_runtime_api.cc.o] Error 1
CMakeFiles/Makefile2:282: recipe for target
'CMakeFiles/tvm_runtime_objs.dir/all' failed
make[1]: *** [CMakeFiles/tvm_runtime_objs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 4%] Building CXX object
CMakeFiles/tvm_objs.dir/src/arith/ir_mutator_with_analyzer.cc.o
CMakeFiles/tvm_objs.dir/build.make:140: recipe for target
'CMakeFiles/tvm_objs.dir/src/arith/int_constraints.cc.o' failed
make[2]: *** [CMakeFiles/tvm_objs.dir/src/arith/int_constraints.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/tvm_objs.dir/all'
failed
make[1]: *** [CMakeFiles/tvm_objs.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
does anyone can help me, thanks a lot
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]