I have 2 video cards on laptop, Intel and Nvidia optimus.
I want to run some CUDA program in LXD.
I read from https://stgraber.org/2017/03/21/cuda-in-lxd/ that needs to install the CUDA tools and Nvidia driver on host.
My question is, if on host I install Nvidia optimus driver but not CUDA library/tool, then in container I install CUDA, will CUDA program work in container?
My host is openSUSE 15.1, I want to run CUDA program in Ubuntu 16.04 container. NVidia provides driver for my host, but they provide CUDA only for openSUSE 15.0 (http://developer.download.nvidia.com/compute/cuda/repos). I guess I can’t eaily install CUDA on host. I choose Ubuntu 16.04 for container cause Nvidia provides all drivers needed.