You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/06/05 10:35:36 UTC

[GitHub] [incubator-tvm] aarongreig opened a new issue #5734: LLVM 10 compatibility

aarongreig opened a new issue #5734:
URL: https://github.com/apache/incubator-tvm/issues/5734


   Hello
   
   I tried to build TVM linking against LLVM 10.0 and I got the following error:
   
   ```
   FAILED: CMakeFiles/tvm.dir/src/codegen/llvm/codegen_x86_64.cc.o 
   /usr/bin/c++  -DDMLC_USE_FOPEN64=0 -DNDEBUG -DTVM_LLVM_VERSION=100 -DTVM_THREADPOOL_USE_OPENMP=0 -Dtvm_EXPORTS -DDMLC_ENABLE_RTTI=0 -I../include -I../3rdparty/dlpack/include -I../3rdparty/dmlc-core/include -I../3rdparty/rang/include -I../3rdparty/compiler-rt -I../3rdparty/picojson -I../vta/include -I/home/aaron/build/llvm/include -I../topi/include -std=c++14 -faligned-new -O2 -Wall -fPIC  -O3 -DNDEBUG -fPIC   -pthread -fno-rtti -MD -MT CMakeFiles/tvm.dir/src/codegen/llvm/codegen_x86_64.cc.o -MF CMakeFiles/tvm.dir/src/codegen/llvm/codegen_x86_64.cc.o.d -o CMakeFiles/tvm.dir/src/codegen/llvm/codegen_x86_64.cc.o -c ../src/codegen/llvm/codegen_x86_64.cc
   ../src/codegen/llvm/codegen_x86_64.cc: In member function 'virtual llvm::Value* tvm::codegen::CodeGenX86_64::VisitExpr_(const tvm::ir::Cast*)':
   ../src/codegen/llvm/codegen_x86_64.cc:88:30: error: 'x86_avx512_mask_vcvtph2ps_512' is not a member of 'llvm::Intrinsic'
              ::llvm::Intrinsic::x86_avx512_mask_vcvtph2ps_512, 16, LLVMType(Float(32, from.lanes())),
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ../src/codegen/llvm/codegen_x86_64.cc:100:30: error: 'x86_vcvtph2ps_256' is not a member of 'llvm::Intrinsic'
              ::llvm::Intrinsic::x86_vcvtph2ps_256, 8, LLVMType(Float(32, from.lanes())),
                                 ^~~~~~~~~~~~~~~~~
   ```
   
   My CMake invocation was just `cmake -DCMAKE_BUILD_TYPE=Release -GNinja`. I used a custom `cmake.config` with `USE_LLVM` pointing to the llvm-config.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] tqchen edited a comment on issue #5734: LLVM 10 compatibility

Posted by GitBox <gi...@apache.org>.
tqchen edited a comment on issue #5734:
URL: https://github.com/apache/incubator-tvm/issues/5734#issuecomment-640295665


   Thanks for reporting the issue, Please open a new thread on https://discuss.tvm.ai/ for discussing trouble shooting issues. Noteably, the current CI uses llvm-10 from the llvm's apt snapshot and the project seems to built fine https://github.com/apache/incubator-tvm/blob/master/tests/scripts/task_config_build_cpu.sh#L32 It could be possible due to some lack of certain llvm features in your llvm-10 build, you can try to use the llvm-10 in the LLVM's apt snapshot instead


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] tqchen commented on issue #5734: LLVM 10 compatibility

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #5734:
URL: https://github.com/apache/incubator-tvm/issues/5734#issuecomment-640295665


   Please open a new thread on https://discuss.tvm.ai/ for discussing trouble shooting issues. Noteably, the current CI uses llvm-10 from the llvm's apt snapshot and the project seems to built fine https://github.com/apache/incubator-tvm/blob/master/tests/scripts/task_config_build_cpu.sh#L32


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] tqchen closed issue #5734: LLVM 10 compatibility

Posted by GitBox <gi...@apache.org>.
tqchen closed issue #5734:
URL: https://github.com/apache/incubator-tvm/issues/5734


   


----------------------------------------------------------------
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:
users@infra.apache.org