tlc-pack / TLCBench

Benchmark scripts for TVM
73 stars 28 forks source link

LLVM Version #4

Closed ArmageddonKnight closed 3 years ago

ArmageddonKnight commented 3 years ago

Hi,

I was trying to reproduce the performance results on g4dn.4xlarge instance but got the following error:

~/TLCBench$ python3 benchmark_autoscheduler.py --network bert --target "cuda -model=t4"  --logdir saved_logs/latest
Benchmark bert-B1-float32 ...
python3: /tmp/build/80754af9/llvmdev_1560805331146/work/lib/ExecutionEngine/MCJIT/MCJIT.cpp:204: virtual void llvm::MCJIT::generateCodeForModule(llvm::Module*): Assertion `M->getDataLayout() == getDataLayout() && "DataLayout Mismatch"' failed.
Aborted (core dumped)

My speculation is that the issue might be caused by LLVM version incompatibility. Would you mind sharing the LLVM version that you are using? I have been using LLVM Ver. 10.

junrushao commented 3 years ago

I am using LLVM 11.1 and it seems to work

ArmageddonKnight commented 3 years ago

@junrushao1994 I see. Let me try to switch to LLVM 11.1.