Skip to content

Commit

Permalink
Patch layout with libiomp5.so from WL 12.3.1, to work around OpenMP/M…
Browse files Browse the repository at this point in the history
…KL incompatibility issue in 13.0.0 relating to /dev/shm not working in Lambda
  • Loading branch information
okofish committed Jan 25, 2022
1 parent 9027d8a commit c85d96b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ COPY AWSLambdaRuntime /usr/share/WolframEngine/Applications/AWSLambdaRuntime
COPY runtime-entrypoint.sh /runtime-entrypoint.sh
COPY runtime-kernel-wrapper.sh /runtime-kernel-wrapper.sh

# patch layout with libiomp5.so from WL 12.3.1, to work around OpenMP/MKL
# incompatibility issue in 13.0.0 relating to /dev/shm not working in Lambda
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

RUN chmod a+rx \
/usr/local/bin/aws-lambda-rie \
/runtime-entrypoint.sh \
Expand Down

0 comments on commit c85d96b

Please sign in to comment.