<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All, <div><br></div><div> I have installed VTK on my computer. However, when I try to configure the example /ParallelProcessing/Generic/Cxx using CMake, I get the following error message.</div><div><br></div><div><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:3 (include):<br>  include could not find load file:<br><br>    vtkMPI<br><br></span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at C:/VTK-8.1.1/src/CMake/vtkModuleAPI.cmake:143 (message):<br>  Requested modules not available:<br><br>    vtkRenderingParallel<br>Call Stack (most recent call first):<br>  C:/VTK-8.1.1/build2/VTKConfig.cmake:127 (vtk_module_config)<br>  CMakeLists.txt:5 (find_package)<br><br></span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Warning (dev) in CMakeLists.txt:<br>  No cmake_minimum_required command is present.  A line of code such as<br><br>    cmake_minimum_required(VERSION 3.13)<br><br>  should be added at the top of the file.  The version specified may be lower<br>  if you wish to support older CMake versions for this project.  For more<br>  information run "cmake --help-policy CMP0000".<br>This warning is for project developers.  Use -Wno-dev to suppress it.</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><font color="#0000ff">Here is the content of CMakeLists.txt used for the configuration:</font></p><p style="margin:0px;white-space:pre-wrap"><font color="#0000ff"><br></font></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#0000ff">INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$")

include(vtkMPI)

find_package(VTK COMPONENTS
  vtkImagingCore
  vtkImagingGeneral
  vtkFiltersCore
  vtkFiltersSources
  vtkParallelMPI
  vtkRenderingCore
  vtkRenderingParallel
  vtkTestingCore
  vtkTestingRendering
)
include(${VTK_USE_FILE})

# Needed for mpich 2
ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK")

ADD_EXECUTABLE(ParallelIso ParallelIso.cxx)
TARGET_LINK_LIBRARIES(ParallelIso LINK_PRIVATE ${VTK_LIBRARIES})
VTK_MPI_LINK(ParallelIso)

SET(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx)

ADD_EXECUTABLE(TaskParallelism          ${TaskPara_SRCS})
TARGET_LINK_LIBRARIES (TaskParallelism ${VTK_LIBRARIES})

#  ADD_EXECUTABLE(SimpleBenchmark SimpleBenchmark.cxx)
#  TARGET_LINK_LIBRARIES(SimpleBenchmark vtkParallel ${MPI_LIBRARIES} )</font></span><br></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#0000ff"><br></font></span></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#000000">I will appreciate if anyone is able to suggest ways to solve the problem </font></span></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#000000"><br></font></span></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#000000">Thanks </font></span></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#000000"><br></font></span></p><p style="margin:0px"><span style="white-space:pre-wrap"><font color="#000000">Famous</font></span></p></div><div><br></div><div><br></div></div></div></div></div>