Skip to content

Commit

Permalink
Testing OpenCl
Browse files Browse the repository at this point in the history
  • Loading branch information
Subashkatel authored Jan 7, 2025
1 parent 71f9a34 commit b918283
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,24 @@ FROM ghcr.io/ucsd-ets/nvcr-cuda:main
#
#USER jovyan
#

# Install OpenCL libraries and a quick "clinfo" tool for debugging
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ocl-icd-libopencl1 \
ocl-icd-opencl-dev \
opencl-headers \
clinfo \
&& rm -rf /var/lib/apt/lists/*

# Optionally set PATH and LD_LIBRARY_PATH if needed
ENV PATH="/usr/local/cuda/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"

# For demonstration, run `clinfo` to confirm OpenCL works
RUN clinfo


# ENV PATH=/usr/local/cuda/bin:$PATH \
# LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/cuda/lib64:$LD_LIBRARY_PATH

Expand Down

0 comments on commit b918283

Please sign in to comment.