# How to build VTK with vtkParallelTimer

**URL:** https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228
**Category:** Development
**Created:** [December 7, 2019, 6:27am UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228 "2019-12-07T06:27:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [December 7, 2019, 6:27am UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/1 "2019-12-07T06:27:24Z")

</div>

Could someone please explain how to get VTK to include **vtkParallelTimer**?

I’ve tried building with VTK\_USE\_MPI and adding a BOOL entry to CMake with  
`VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER = ON`  
and  
`VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER = ON`  
but it doesn’t seem to work.

What am I missing?

---

<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: [December 8, 2019, 11:56am UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/2 "2019-12-08T11:56:35Z")

</div>

There are no flags to enable specific classes in modules (nor should there ever be). The “should it build” flag is attached to the module itself. I’ve answered [on GitLab](https://gitlab.kitware.com/vtk/vtk/merge_requests/6122#note_664897) about how to enable logging for the module system to see why the module isn’t available.

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [December 8, 2019, 12:48pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/3 "2019-12-08T12:48:15Z")

</div>

I have now discovered that I had to manually add an entry to CMake for VTK\_MODULE\_ENABLE\_VTK\_RenderingParallelLIC which then automatically added boolean entries for `VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER` and `VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER`

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 8, 2019, 12:49pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/4 "2019-12-08T12:49:22Z")

</div>

> [@toddy](#):
>
> VTK\_RENDERINGPARALLELLIC\_LINEINTEGRAL **CONVLOLUTION** 2D\_TIMER

It seems there’s a typo in that name. Are you sure?

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [December 8, 2019, 12:51pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/5 "2019-12-08T12:51:34Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/8/85b2f80c7b7fa2fdcf41f59a92d67e34b9c1f0aa.png)

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [December 8, 2019, 12:54pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/6 "2019-12-08T12:54:21Z")

</div>

With these options ticked I can at least force vtkPLineIntegralConvolution2D and vtkPSurfaceLICComposite to build with vtkParallelTimer.

---

<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: [March 16, 2020, 2:59pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-with-vtkparalleltimer/2228/7 "2020-03-16T14:59:27Z")

</div>

> [@Paulo\_Carvalho](#):
>
> It seems there’s a typo in that name.

Fixed here: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/6579](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6579)
