Skip to content

Sub-second pencil beam dose calculation on GPU for adaptive proton therapy

License

Notifications You must be signed in to change notification settings

ferdymercury/RayTraceDicom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTraceDicom

Sub-second pencil beam dose calculation on GPU for adaptive proton therapy

LEGAL NOTICE

The core of the code within this repository is based on the PhD project of Joakim da Silva, developed within the ENTERVISION Marie Curie Initial Training Network. The core was later refactored and documented by Fernando Hueso-González.

The code is licensed under GPLv3. When (re)using this code, attribution to Joakim da Silva must be granted and relevant papers must be cited:

More details:

REQUIREMENTS

  • CUDA, CUDA-TOOLKIT, CUDA-SAMPLES
  • GDCM
  • ITK (if custom build, then with -DITK_USE_SYSTEM_GDCM=ON, otherwise just apt install libinsighttoolkit5-dev)
  • git clone https://github.com/ferdymercury/cmake-modules into /opt
  • qhelpgenerator (sudo apt install qhelpgenerator-qt5)
  • CLI11 (apt install libcli11-dev)

BUILDING

  • mkdir build
  • cmake <path/to/src>/RayTraceDicom, optionally with -DITK_DIR=/path/to/build
  • make

EXAMPLE FILES

To generate a dummy water phantom CT and RT plan, use:

  • sudo pip3 install scipy pydicom
  • python3 extern/dicom-interface/rti/test/dicom/generate_water_cube.py --outdir /tmp/watercube/ --institution rbe --machine 1.1

RUNNING

  • ./src/RayTraceDicom --output_directory /tmp/watercube/ --ct_dir /tmp/watercube/ct/ --rtplan /tmp/watercube/rtplan.dcm --beams G000

NOTES

You might need for old Tesla C2070 commands such as:

CompileFlags:
Add:
  [
    '--cuda-path="/opt/cuda-8.0/"',
    --cuda-gpu-arch=sm_20,
    '-L"/opt/cuda-8.0/lib64/"',
    -lcudart,
  ]

About

Sub-second pencil beam dose calculation on GPU for adaptive proton therapy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published