config BR2_PACKAGE_NVIDIA_DRIVER_CUDA
bool "CUDA support"
+if BR2_PACKAGE_NVIDIA_DRIVER_CUDA
+
config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
bool "OpenCL support"
- depends on BR2_PACKAGE_NVIDIA_DRIVER_CUDA
+
+config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS
+ bool "CUDA MPS server and control"
+ depends on BR2_x86_64
+ help
+ Say 'y' here if you need to run more than one program
+ doing CUDA at the same time. The MPS server will be
+ launched automatically when needed.
+
+endif # BR2_PACKAGE_NVIDIA_DRIVER_CUDA
comment "nvidia kernel module needs a kernel to be built"
depends on !BR2_LINUX_KERNEL
ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_CUDA),y)
NVIDIA_DRIVER_LIBS += libcuda libnvidia-compiler libnvcuvid libnvidia-encode
+ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS),y)
+NVIDIA_DRIVER_PROGS = nvidia-cuda-mps-control nvidia-cuda-mps-server
+endif
endif
ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_OPENCL),y)
$(INSTALL) -D -m 0644 $(@D)/$${m##*/} \
$(TARGET_DIR)/usr/lib/xorg/modules/$${m}; \
done
+ for p in $(NVIDIA_DRIVER_PROGS); do \
+ $(INSTALL) -D -m 0755 $(@D)/$${p} \
+ $(TARGET_DIR)/usr/bin/$${p}; \
+ done
$(NVIDIA_DRIVER_INSTALL_KERNEL_MODULE)
endef