CMakeLists.txt 1.47 KB
Newer Older
1
2
3
4
##============================================================================
##  Copyright (c) Kitware, Inc.
##  All rights reserved.
##  See LICENSE.txt for details.
5
##
6
7
8
9
10
11
12
13
##  This software is distributed WITHOUT ANY WARRANTY; without even
##  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##  PURPOSE.  See the above copyright notice for more information.
##============================================================================

set(unit_tests
  UnitTestOpenMPArrayHandle.cxx
  UnitTestOpenMPArrayHandleFancy.cxx
14
  UnitTestOpenMPArrayHandleVirtualCoordinates.cxx
Allison Vacanti's avatar
Allison Vacanti committed
15
  UnitTestOpenMPBitField.cxx
16
  UnitTestOpenMPCellLocatorRectilinearGrid.cxx
17
  UnitTestOpenMPCellLocatorUniformBins.cxx
18
  UnitTestOpenMPCellLocatorUniformGrid.cxx
19
  UnitTestOpenMPColorTable.cxx
20
21
22
23
24
25
26
27
28
  UnitTestOpenMPComputeRange.cxx
  UnitTestOpenMPDataSetExplicit.cxx
  UnitTestOpenMPDataSetSingleType.cxx
  UnitTestOpenMPDeviceAdapter.cxx
  UnitTestOpenMPImplicitFunction.cxx
  UnitTestOpenMPPointLocatorUniformGrid.cxx
  UnitTestOpenMPVirtualObjectHandle.cxx
  )
vtkm_unit_tests(OpenMP SOURCES ${unit_tests})
29

30
31
32
33
34
35
36
37
38
39
40
41
if (VTKm_ENABLE_TESTING)
  #We need to have all OpenMP tests run serially as they
  #will uses all the system cores, and we will cause a N*N thread
  #explosion which causes the tests to run slower than when run
  #serially
  foreach (test ${unit_tests})
    get_filename_component(tname ${test} NAME_WE)
    set_tests_properties(${tname} PROPERTIES
        RUN_SERIAL True
    )
  endforeach()
endif()