Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libiomp5.so patch not working for latest wolfram version #3

Open
aplr opened this issue May 22, 2024 · 0 comments
Open

libiomp5.so patch not working for latest wolfram version #3

aplr opened this issue May 22, 2024 · 0 comments

Comments

@aplr
Copy link

aplr commented May 22, 2024

The patch of libiomp5.so from #2 does not work for wolfram versions later than 13.0, as the directory has changed.

COPY --from=wolframresearch/wolframengine:12.3.1 \
/usr/local/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
/usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

This should rather be something like:

ARG WOLFRAM_VERSION=13.3

// ...

FROM wolframresearch/wolframengine:${WOLFRAM_VERSION}

// ...

COPY --from=wolframresearch/wolframengine:12.3.1 \
  /usr/local/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
  /usr/local/Wolfram/WolframEngine/${WOLFRAM_VERSION}/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

I've temp. worked around it for now by doing the following in my final image:

FROM wolframresearch/aws-lambda-wolframlanguage:latest

USER root

RUN cp -f /usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
    /usr/local/Wolfram/WolframEngine/13.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

USER wolframengine

// ...
@aplr aplr changed the title libiomp5.so patch not working for latest version libiomp5.so patch not working for latest wolfram version May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant