# Build ParaView with VTK-m CUDA enabled

**URL:** https://discourse.paraview.org/t/build-paraview-with-vtk-m-cuda-enabled/4404
**Category:** ParaView Support
**Created:** [May 24, 2020, 9:10pm UTC](https://discourse.paraview.org/t/build-paraview-with-vtk-m-cuda-enabled/4404 "2020-05-24T21:10:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ameba\_Brain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameba_brain/32/3826_2.png) [@Ameba\_Brain](https://discourse.paraview.org/u/Ameba_Brain)
#### Post date: [May 24, 2020, 9:10pm UTC](https://discourse.paraview.org/t/build-paraview-with-vtk-m-cuda-enabled/4404/1 "2020-05-24T21:10:58Z")

</div>

Dear all,

Please help build ParaView with VTK-m plugins with CUDA support enabled

On [Release Notes](https://www.paraview.org/Wiki/ParaView_Release_Notes#VTK-m_Plugin) for _VTK-m_ plugin it is stated

> If desired, you can enable GPU support via CUDA by building ParaView from source with a VTK-m that has CUDA support enabled.

I’ve built VTK-m with CUDA enabled flag as mentioned in official VTK manual or on [this](https://gitlab.kitware.com/vtk/vtk-m/blob/master/README.md#building) link. And installed it via `make install`. It installed header files into `/usr/local/lib|share` folders

I also picked up ParaView from sources and following official [build](https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md) guide for ParaView itself compiled it from source.

But I didn’t see anywhere how to tell _ninja_ builder which compiles ParaView where to pick-up my compiled VTK-m with CUDA support?

By default ParaView repository has VTK-m git submodule and I suspect it still uses it and not recompiled one.

I’m on Ubuntu 18.04.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 25, 2020, 1:47am UTC](https://discourse.paraview.org/t/build-paraview-with-vtk-m-cuda-enabled/4404/2 "2020-05-25T01:47:08Z")

</div>

AFAIK, VTK does not allow to build with an external VTK-m and ParaView does not allow to build with an external VTK.

If I’m not mistaken, building ParaView with CUDA and VTK-m enabled should give what you are looking for.

---

<div class="post-metadata">

### Author: ![Ameba\_Brain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameba_brain/32/3826_2.png) [@Ameba\_Brain](https://discourse.paraview.org/u/Ameba_Brain)
#### Post date: [May 26, 2020, 9:14pm UTC](https://discourse.paraview.org/t/build-paraview-with-vtk-m-cuda-enabled/4404/3 "2020-05-26T21:14:04Z")

</div>

Thank you for the clarifications. Official docs kind of not clear on this.  
If no other confirmation replies will be given will assume that I did everything correct
