diff options
author | Stephen Nicholas Swatman <stephen@v25.nl> | 2024-07-10 14:50:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 06:50:07 -0600 |
commit | c458e985affe020edf79c4e47f2156b0a1b7a308 (patch) | |
tree | c02f2ffc15a061c001698ad653286506a9cda118 /.dockerignore | |
parent | 5f234e16d067c490db9b128119b9198d517ba6cb (diff) | |
download | spack-c458e985affe020edf79c4e47f2156b0a1b7a308.tar.gz spack-c458e985affe020edf79c4e47f2156b0a1b7a308.tar.bz2 spack-c458e985affe020edf79c4e47f2156b0a1b7a308.tar.xz spack-c458e985affe020edf79c4e47f2156b0a1b7a308.zip |
Set `LD_LIBRARY_PATH` for OneAPI compiler (#45059)
While trying to build packages with the OneAPI compiler version 2024.1 I
ran into the following error, indicating that the compiler is unable to
find some necessary libraries:
```
/storage/Software/oneapi/2024.1/compiler/2024.1/bin/sycl-post-link: error
while loading shared libraries: libonnxruntime.1.12.22.721.so: cannot open
shared object file: No such file or directory
icpx: error: unable to execute command: No such file or directory
icpx: error: sycl-post-link command failed due to signal (use -v to see
invocation)
```
Indeed, `libonnxruntime.1.12.22.721.so` does come bundled with the
OneAPI compiler, but it is not available in the build environment by
default. In this commit, I update the custom environment created by
OneAPI to include the `lib/` directory in which these libraries reside
in the `LD_LIBRARY_PATH` environment variable.
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions