As we mentioned in the past post, the rpm package for llvm-ve is now available on VEOS yum Repository on the Web.
You can install llvm-ve:
% yum install https://sx-aurora.com/repos/veos/ef_extra/x86_64/llvm-ve-1.1.0-1.1.0-1.x86_64.rpm \
https://sx-aurora.com/repos/veos/ef_extra/x86_64/llvm-ve-link-1.1.0-1.x86_64.rpm
The llvm-ve package is all in one package that includes llvm, clang and runtimes. Files are installed into /opt/nec/nosupport/llvm-ve-1.1.0
. The llvm-ve-link makes a symlink from /opt/nec/nosupport/llvm-ve
to there.
You can compile your program like this.
% /opt/nec/nosupport/llvm-ve/bin/clang -target ve-linux hello.c
Sometimes auto vectorization does not work well with llvm-ve because we have not yet ported llvm’s autovec to VE. In that case, please use additional options.
% /opt/nec/nosupport/llvm-ve/bin/clang -target ve-linux -fno-vectorize -fno-slp-vectorize hello.c