# CUDA and OpenCL

**URL:** https://discourse.vtk.org/t/cuda-and-opencl/5609
**Category:** Support
**Created:** [April 22, 2021, 11:30am UTC](https://discourse.vtk.org/t/cuda-and-opencl/5609 "2021-04-22T11:30:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [April 22, 2021, 11:30am UTC](https://discourse.vtk.org/t/cuda-and-opencl/5609/1 "2021-04-22T11:30:05Z")

</div>

Dear All,

Does VTK uses CUDA or OpenCL (with CPU or GPU) for processing? Or can be enabled?

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [May 1, 2021, 5:18pm UTC](https://discourse.vtk.org/t/cuda-and-opencl/5609/2 "2021-05-01T17:18:23Z")

</div>

May I suppose that all massive processing is done in OpenGL?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 1, 2021, 6:58pm UTC](https://discourse.vtk.org/t/cuda-and-opencl/5609/3 "2021-05-01T18:58:47Z")

</div>

VTK-m has some filters algorithms which use CUDA if enabled. Some raytracing may use CUDA as well, but I’m not sure which exactly. I don’t think there’s any OpenCL usage at all.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [June 22, 2021, 4:03am UTC](https://discourse.vtk.org/t/cuda-and-opencl/5609/4 "2021-06-22T04:03:15Z")

</div>

You can also implement image processing filters using GLSL using vtkOpenGLShaderComputation (in [vtkAddon](https://github.com/Slicer/vtkAddon/blob/master/vtkOpenGLShaderComputation.h)). See some more information in [this topic](https://discourse.vtk.org/t/interest-in-gpu-image-processing-pipeline/535/12).
