This commit is contained in:
unknown
2025-12-11 04:30:50 -08:00
parent e8b2ad92f3
commit 411e22e8c5
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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')