# PyTorch and 'OpenCL'

**URL:** <https://discuss.pytorch.org/t/pytorch-and-opencl/170839>\
**Category:** Uncategorized\
**Created:** [January 22, 2023, 7:47pm UTC](https://discuss.pytorch.org/t/pytorch-and-opencl/170839 "2023-01-22T19:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbl001](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dbl001/32/56642_2.png) [@dbl001](https://discuss.pytorch.org/u/dbl001)\
**Post date:** [January 22, 2023, 7:47pm UTC](https://discuss.pytorch.org/t/pytorch-and-opencl/170839/1 "2023-01-22T19:47:19Z")

</div>

Is there a version of PyTorch which works with ‘OpenCL’ on MacoOS Ventura?  
If yes, does it support torch.float64?, torch.cfloat? torch.cdouble?

I have an AMD Radeon Pro 5700 XT GPU.

---

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [January 24, 2023, 2:48pm UTC](https://discuss.pytorch.org/t/pytorch-and-opencl/170839/2 "2023-01-24T14:48:18Z")

</div>

Hi,

I think you have a few options here:

- You can try to use the MPS backend that is available with the regular macOS install. I am not 100% sure if your OS is recent enough though.
- You can take a look at this OpenCL backend for PyTorch: [GitHub - artyom-beilis/pytorch\_dlprim: DLPrimitives/OpenCL out of tree backend for pytorch](https://github.com/artyom-beilis/pytorch_dlprim) I’m not sure what’s the status of macOS support there though.
