是否可以在 Windows Linux 子系统上获取 OpenCL?

Is it possible to get OpenCL on Windows Linux Subsystem?

过去一天我一直在尝试在 Linux 子系统上使用 OpenCL 构建 Tensorflow

我关注了this guide。但是当输入 clinfo 它说

Number of platforms 0

然后输入 /usr/local/computecpp/bin/computecpp_info 会得到

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.

我做错了什么吗?甚至可以在 Windows Linux 子系统上安装 OpenCL?

注: 我正在使用来自 MSI64bit Windows Home Edition

AMD R9 390X

根据 Microsoft 代表在 this forum post 中的说法,Linux 的 Windows 子系统 支持 OpenCL 或 CUDA GPU 程序,并且支持目前没有计划。要试验 TensorFlow/OpenCL,在双引导配置中安装 Linux 可能是最简单的。

您可以将英特尔 OpenCL SDK 用于 CPU、https://software.intel.com/en-us/articles/opencl-drivers

随着 WSL2 的推出,WSL 现在支持 CUDA 程序 (more information here), however there is still no support for OpenCL as of this writing: https://github.com/microsoft/WSL/issues/6951