Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
allemangD authored Sep 18, 2024
1 parent 162bc99 commit a821e17
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@ Overview
Halide implementation of common filters.

Experimental integration of Halide runtime into ITK, with Halide implementations of common filters targeting Threads, SIMD, and GPGPU.

Building
--------

Build ITK with flag `ITK_USE_GPU`.

.. code-block:: bash
git clone https://github.com/InsightSoftwareConsortium/ITK.git -b release-5.4
cmake -S ITK -B ITK-build -DITK_USE_GPU=ON
cmake --build ITK-build --parallel
Build ITKHalideFilters against that ITK build.

.. code-block:: bash
git clone https://github.com/KitwareMedical/ITKHalideFilters.git
cmake -S ITKHalideFilters -B ITKHalideFilters-build -DITK_DIR=ITK-build
cmake --build ITKHalideFilters-build --parallel
The ITKHalideFilters build system will automatically download an appropriate version of Halide. Options may be given with `-D`, or set in `ccmake` or `cmake-gui`.

- ``-DModule_HalideFilters_TEST_GPU=ON`` (default OFF) will enable tests for GPU filters. This is disabled by default as the CI server does not have GPU provisioning. Halide guarantees that all schedules of the same algorithm will produce the same output, so CI testing the CPU schedule **should** be sufficient to check correctness. Recommend setting this ON for local builds with CUDA availability.

- ``-DModule_HalideFilters_USE_AUTOSCHEDULER=ON`` (default OFF) will invoke appropriate autoschedulers for the Halide filters. This significantly increases build time, but may improve runtime performance on specific hardware.

0 comments on commit a821e17

Please sign in to comment.