Skip to content

Commit bdeb73c

Browse files
committed
Add compute and video NVIDIA driver capabilities under Linux
1 parent ae9f63e commit bdeb73c

File tree

1 file changed

+9
-1
lines changed
  • ue4docker/dockerfiles/ue4-build-prerequisites/linux

1 file changed

+9
-1
lines changed

ue4docker/dockerfiles/ue4-build-prerequisites/linux/Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ LABEL com.adamrehn.ue4-docker.sentinel="1"
99
# Disable interactive prompts during package installation
1010
ENV DEBIAN_FRONTEND=noninteractive
1111

12+
# Enable CUDA support for NVIDIA GPUs (even when not using a CUDA base image), since evidently some versions of UE unconditionally assume
13+
# `libcuda.so.1` exists when using the NVIDIA proprietary drivers, and will fail to initialise the Vulkan RHI if it is missing
14+
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES},compute
15+
1216
# Add the "display" driver capability for NVIDIA GPUs
13-
# (This also allows us to run the Editor from an interactive container by bind-mounting the host system's X11 socket)
17+
# (This allows us to run the Editor from an interactive container by bind-mounting the host system's X11 socket)
1418
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES},display
1519

20+
# Enable NVENC support for use by Unreal Engine plugins that depend on it (e.g. Pixel Streaming)
21+
# (Note that adding `video` seems to implicitly enable `compute` as well, but we include separate directives here to clearly indicate the purpose of both)
22+
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES},video
23+
1624
# Install our build prerequisites
1725
RUN apt-get update && apt-get install -y --no-install-recommends \
1826
build-essential \

0 commit comments

Comments
 (0)