antinucleon commented on pull request #7022: URL: https://github.com/apache/tvm/pull/7022#issuecomment-737778535
> > @FrozenGene I tried it is tricky lol. I need to cross compile an ARM 64 LLVM. I did once but seems it was still x86-64 binary, then it will cause ARM conda segfault. If I don't work with conda, the tricky part is scipy, which requires gcc. I probably need to cross compile an ARM gcc, then compile LAPACK + Scipy. Or I can eliminate scipy dependency in TVM (which I have done in one version) > > Last time I don't have enough time to figure out how to correctly cross compile ARM64 LLVM, maybe I can try again this week. > > A few tips for people who want to compile LLVM on MacMini directly: > > > > * Use make -j2 at beginning > > * When make is killed because of OOM, reboot > > * Use make -j2 again it will be successful :D > > When you build it on the Apple Silicon machine, LLVM can not recognize correct host target and still produce x86 binary? I need to double-check. I was hit by segfault but didn't dive into it. For the GCC part, could we build LLVM with Clang together then make a softlink gcc pointing to clang like Apple doing it on Mac? There is a gcc port, which conda is using. Which we may use. My guess is: we don't know whether M1 is using some new vector / FMA instruction. If so, we can only obtain good perf until Apple contributes back to upstream LLVM. But I hope we will have more sense this week. ---------------------------------------------------------------- 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: us...@infra.apache.org