DeadSix27 / waifu2x-converter-cpp

Improved fork of Waifu2X C++ using OpenCL and OpenCV
MIT License
792 stars 86 forks source link

Docker beignet-opencl-icd #258

Closed spigelli closed 3 years ago

spigelli commented 4 years ago

Is opencl within the docker container configured for intel gpu's / cpus only? I added ocl-icd-opencl-dev to be installed when building the image and installed it on the host but no luck getting it to use the gpu. Maybe opencl would require cuda in the container as well? Should be able to work with normal drivers though right?

Here's nvidia-smi from inside the container: image

And on the host: image

And the error: image

The Dockerfile was added in #256 for ref

spigelli commented 3 years ago

Got it working with this Dockerfile which is dependent on yet another fork so that I can merge #252 and hardcode the models directory. Cuda can't be inherited via nvidia-docker2 runtime environment so this image is based on nvidia/cuda:11.1-devel-ubuntu18.04. Couldn't do ubuntu20.04 since I guess waifu2x-converter-cpp breaks with lib-opencv4.2 even though the docs specify 3.1+