Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get OpenCL on Windows Linux Subsystem?

I'v been trying for the past day to get Tensorflow built with OpenCL on the Linux Subsystem.

I followed this guide. But when typing clinfo it says

Number of platforms 0

Then typing /usr/local/computecpp/bin/computecpp_info gives me

OpenCL error -1001: Unable to retrieve number of platforms. Device Info: Cannot find any devices on the system. Please refer to your OpenCL vendor documentation. Note that OPENCL_VENDOR_PATH is not defined. Some vendors may require this environment variable to be set.

Am I doing anything wrong? Is it even possible to install OpenCL on Windows Linux Subsystem?

Note: I'm using an AMD R9 390X from MSI, 64bit Windows Home Edition

like image 900
abrad1212 Avatar asked Nov 02 '17 01:11

abrad1212


People also ask

Does WSL2 support OpenCL?

Hardware-accelerated oneAPI Level Zero, OpenVINO, and OpenCL on Intel graphics hardware can now be enjoyed within the WSL2 environment when using the latest updates and drivers.

Can I use GPU in WSL?

With NVIDIA CUDA support for WSL 2, developers can leverage NVIDIA GPU accelerated computing technology for data science, machine learning and inference on Windows through WSL.

Do I have OpenCL in Linux?

Executing the command clocl --version will display the version of the OpenCL compiler installed. Executing the command ls -l /usr/lib/libOpenCL* will display the OpenCL libraries installed on the device.


2 Answers

With the launch of WSL2, CUDA programs are now supported in WSL (more information here), however there is still no support for OpenCL as of this writing: https://github.com/microsoft/WSL/issues/6951.

like image 172
Dinei Avatar answered Sep 17 '22 22:09

Dinei


According to a Microsoft representative in this forum post, Windows Subsystem for Linux does not support OpenCL or CUDA GPU programs, and support is not currently planned. To experiment with TensorFlow/OpenCL it would probably be easiest to install Linux in a dual-boot configuration.

like image 29
mrry Avatar answered Sep 17 '22 22:09

mrry