Compile pytorch 2.0 with backend support for opencl opengl and vulkan

Does pytorch 2.0 support any of the following backends and if so how do I enable them.

  1. OpenCL
  2. OpenGL
  3. Vulkan,

When I try the version Installed I get the following
python
Python 3.11.3 (main, May 5 2023, 10:18:46) [GCC 12.2.1 20230304] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import torch
t2=torch.randn(1,10).to(‘devices’)
Error in cpuinfo: processor architecture is not supported in cpuinfo
Traceback (most recent call last):
File “”, line 1, in
RuntimeError: Expected one of cpu, cuda, ipu, xpu, mkldnn, opengl, opencl, ideep, hip, ve, fpga, ort, xla, lazy, vulkan, mps, meta, hpu, mtia, privateuseone device type at start of device string: devices
t2=torch.randn(1,10).to(‘cpu’)
print(t2)
tensor([[ 1.4973, -0.7791, -0.4402, -1.6017, 0.4876, -0.7664, -0.7203, 0.2741,
-2.4557, 0.5646]])
t2=torch.randn(1,10).to(‘opengl’)
Traceback (most recent call last):
File “”, line 1, in
RuntimeError: PyTorch is not linked with support for opengl devices
t2=torch.randn(1,10).to(‘opencl’)
Traceback (most recent call last):
File “”, line 1, in
RuntimeError: PyTorch is not linked with support for opencl devices
t2=torch.randn(1,10).to(‘vulkan’)
Traceback (most recent call last):
File “”, line 1, in
RuntimeError: PyTorch is not linked with support for vulkan devices