package/nvidia-driver: become an OpenCL provider
We need to install the mesa3d-headers, because the CL headers are not provided by nvidia-driver (just like it didn't provide the OpenGL headers). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
45004ac59a
commit
5a4d6e444c
@ -60,6 +60,11 @@ if BR2_PACKAGE_NVIDIA_DRIVER_CUDA
|
|||||||
|
|
||||||
config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
|
config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
|
||||||
bool "OpenCL support"
|
bool "OpenCL support"
|
||||||
|
select BR2_PACKAGE_MESA3D_HEADERS
|
||||||
|
select BR2_PACKAGE_HAS_LIBOPENCL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PROVIDES_LIBOPENCL
|
||||||
|
default "nvidia-driver" if BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
|
||||||
|
|
||||||
config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS
|
config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS
|
||||||
bool "CUDA MPS server and control"
|
bool "CUDA MPS server and control"
|
||||||
|
@ -116,6 +116,8 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_OPENCL),y)
|
|||||||
NVIDIA_DRIVER_LIBS += \
|
NVIDIA_DRIVER_LIBS += \
|
||||||
libOpenCL.so.1.0.0 \
|
libOpenCL.so.1.0.0 \
|
||||||
libnvidia-opencl.so.$(NVIDIA_DRIVER_VERSION)
|
libnvidia-opencl.so.$(NVIDIA_DRIVER_VERSION)
|
||||||
|
NVIDIA_DRIVER_DEPENDENCIES += mesa3d-headers
|
||||||
|
NVIDIA_DRIVER_PROVIDES += libopencl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Build and install the kernel modules if needed
|
# Build and install the kernel modules if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user