mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-08 21:38:12 -05:00
...
This commit is contained in:
@@ -52,7 +52,9 @@ RUN case "${DEVICE_TAG}" in \
|
||||
*) ;; \
|
||||
esac
|
||||
|
||||
ENV LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
RUN if echo "${DEVICE_TAG}" | grep -q "^jetson51"; then \
|
||||
echo "export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}" >> /etc/profile.d/cuda.sh; \
|
||||
fi
|
||||
|
||||
RUN wget -nv "$CALIBRE_INSTALLER_URL" -O /tmp/calibre.sh && \
|
||||
bash /tmp/calibre.sh && rm -f /tmp/calibre.sh
|
||||
|
||||
@@ -658,7 +658,7 @@ function check_sitecustomized {
|
||||
function build_docker_image {
|
||||
local ARG="$1"
|
||||
if [[ "$ARG" == "" ]]; then
|
||||
echo "build_docker_image() error: ARG is empt"
|
||||
echo "build_docker_image() error: ARG is empty"
|
||||
return 1
|
||||
fi
|
||||
if ! command -v docker >/dev/null 2>&1; then
|
||||
|
||||
@@ -238,7 +238,7 @@ class DeviceInstaller():
|
||||
minor = parts[1] if len(parts) > 1 else 0
|
||||
patch = parts[2] if len(parts) > 2 else 0
|
||||
name = 'cuda'
|
||||
tage = f'cu{major}{minor}'
|
||||
tag = f'cu{major}{minor}'
|
||||
else:
|
||||
msg = 'Cuda GPU detected but not compatible or Cuda runtime is missing.'
|
||||
|
||||
@@ -267,7 +267,7 @@ class DeviceInstaller():
|
||||
name = 'xpu'
|
||||
tag = 'xpu'
|
||||
else:
|
||||
msg = 'Intel GPU detected but not compotible or oneAPI runtime is missing.'
|
||||
msg = 'Intel GPU detected but not compatible or oneAPI runtime is missing.'
|
||||
|
||||
elif has_cmd('clinfo'):
|
||||
out = try_cmd('clinfo')
|
||||
|
||||
Reference in New Issue
Block a user