1

I'm running Centos 7 and am trying to build hipSYCL (see here)

The issue is that hipSYCL needs to have cmake info from the LLVM build (via the LLVM_DIR cmake variable). This is problematic for me because building LLVM requires a massive 35Gb for the libraries and exes. I don't have that much memory to spare.

I did find a build of llvm-toolset-8.0 online for Centos 7 and installed it, but to my surprise, that didn't seem to work with LLVM_DIR because there's no cmake files (since I didn't build it locally).

So, my question would be, is there a way to build hipSYCL using pre-built LLVM-clang?

If I'm missing or misunderstanding something, I'd appreciate any help.

Aaron B.
  • 1,605
  • 13
  • 12
  • 1
    LLVM publishes the necessary cmake files, and the binary OS packages I've seen include it, generally in a directory called /usr/lib/llvm*/lib/cmake and in a package called something like llvm-*-dev. – arnt Oct 20 '20 at 18:19
  • Thank you, that was it--I needed the devel package (it brought the cmake info along). If you desire, answer the question and I'll mark it as the answer. Otherwise, I'll answer it myself and reference your comment. – Aaron B. Oct 20 '20 at 21:34

1 Answers1

2

LLVM publishes the necessary cmake files, and the binary OS packages I've seen include it, generally in a directory called /usr/lib/llvm*/lib/cmake and in a package called something like llvm-*-dev.

arnt
  • 8,949
  • 5
  • 24
  • 32