Skip to content

Commit

Permalink
COMP: Do not test GPU filter by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
allemangD committed Sep 16, 2024
1 parent cac173b commit fca0462
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

option(Module_HalideFilters_USE_AUTOSCHEDULER "Use auto-schedulers for Halide filters" OFF)
option(Module_HalideFilters_TEST_GPU "Run GPU tests" OFF)

# Update the following variables to update the version of Halide used
set(HALIDE_VERSION "18.0.0")
Expand Down
20 changes: 11 additions & 9 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ itk_add_test(NAME itkHalideDiscreteGaussianImageFilterTest
9
)

itk_add_test(NAME itkHalideGPUDiscreteGaussianImageFilterTest
COMMAND
HalideFiltersTestDriver
--compare DATA{CTChest/ReferenceOutput.mha} ${ITK_TEST_OUTPUT_DIR}/Output.mha
itkHalideGPUDiscreteGaussianImageFilterTest
DATA{CTChest/Input.mha}
${ITK_TEST_OUTPUT_DIR}/Output.mha
9
)
if(Module_HalideFilters_TEST_GPU)
itk_add_test(NAME itkHalideGPUDiscreteGaussianImageFilterTest
COMMAND
HalideFiltersTestDriver
--compare DATA{CTChest/ReferenceOutput.mha} ${ITK_TEST_OUTPUT_DIR}/Output.mha
itkHalideGPUDiscreteGaussianImageFilterTest
DATA{CTChest/Input.mha}
${ITK_TEST_OUTPUT_DIR}/Output.mha
9
)
endif()

0 comments on commit fca0462

Please sign in to comment.