Skip to content
Snippets Groups Projects
Select Git revision
  • 5ed478e298303e64a433de1ee5bf4a0347d5d053
  • main default protected
2 results

main.cpython-311.pyc

Blame
  • install.sh 776 B
    #!/bin/bash
    module load cmake/3.16.4
    module load gcc/10
    
    mkdir dependencies
    cd dependencies
    
    # Install Ospray.
    wget https://github.com/ospray/ospray/releases/download/v1.8.5/ospray-1.8.5.x86_64.linux.tar.gz
    ZIP=ospray-1.8.5.x86_64.linux.tar.gz
    tar -xzvf $ZIP
    rm $ZIP
    mv ./ospray-1.8.5.x86_64.linux ./ospray-1.8.5
    
    # Install VTK.
    git clone https://github.com/Kitware/VTK.git
    cd VTK
    git checkout v9.0.1
    mkdir build
    cd build
    export ospray_DIR=../../ospray-1.8.5/lib/cmake/ospray-1.8.5
    cmake .. -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing=YES
    cmake --build . --config Release --parallel 64
    
    # Install application.
    cd ../../offline_ray_tracer
    mkdir build
    cd build
    export VTK_DIR=../../../dependencies/VTK/build
    cmake ..
    cmake --build . --clean-first --config Release --parallel 64