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