Error loading shared library libcuda.so.1 results in fatal error
I'm getting an issue when trying to run my service as a docker image. This service uses the deep learning model vgg16. However, when I run my service in my IDE, I don't get the fatal error although I get the same missing library message and my service executes successfully. Below is the full stack trace. Please help. Thanks!
Warning: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: [/usr/lib/jvm/java-11-openjdk/lib/server, /usr/lib/jvm/java-11-openjdk/lib, /usr/lib/jvm/java-11-openjdk/../lib, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
2021-09-13 18:54:08.214 WARN 1 --- [nio-8443-exec-4] org.nd4j.linalg.factory.Nd4jBackend : Skipped [JCublasBackend] backend (unavailable): java.lang.UnsatisfiedLinkError: /data/?/.javacpp/cache/cuda-10.2-7.6-1.5.3-linux-x86_64.jar/org/bytedeco/cuda/linux-x86_64/libjnicudart.so: Error loading shared library libcuda.so.1: No such file or directory (needed by /data/?/.javacpp/cache/cuda-10.2-7.6-1.5.3-linux-x86_64.jar/org/bytedeco/cuda/linux-x86_64/libjnicudart.so)
2021-09-13 18:54:08.223 INFO 1 --- [nio-8443-exec-4] org.nd4j.linalg.factory.Nd4jBackend : Loaded [CpuBackend] backend
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000000000021c6, pid=1, tid=375
#
# JRE version: OpenJDK Runtime Environment (11.0.11+9) (build 11.0.11+9-alpine-r0)
# Java VM: OpenJDK 64-Bit Server VM (11.0.11+9-alpine-r0, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
# Problematic frame:
# C 0x00000000000021c6
#
# Core dump will be written. Default location: /data/core.1
#
# An error report file with more information is saved as:
# /data/hs_err_pid1.log
#
# If you would like to submit a bug report, please visit:
# https://gitlab.alpinelinux.org/alpine/aports/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.