Skip to content

Commit

Permalink
Build full cil (SyneRBI#195)
Browse files Browse the repository at this point in the history
closes SyneRBI#192 
closes SyneRBI#181
  • Loading branch information
paskino authored Jun 25, 2021
1 parent b09dc99 commit 09dbbc4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/UPDATE.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ SuperBuild(){
-DBUILD_CIL_LITE=ON\
-DCYTHON_EXECUTABLE="$CYTHON_EXECUTABLE"\
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE"\
-DBUILD_pet_rd_tools=ON
make -j${num_parallel}
-DBUILD_pet_rd_tools=ON
cmake --build . -j${num_parallel}

if [ ! -f ${SIRF_INSTALL_PATH}/share/gadgetron/config/gadgetron.xml ]
then
Expand Down
14 changes: 10 additions & 4 deletions scripts/update_VM_to_full_CIL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# the CCPi Regularisation Toolkit and TomoPhantom.
#
#
# Author: Kris Thielemans
# Author: Kris Thielemans, Edoardo Pasca

echo "This script assumes you have run update_VM.sh already."
echo "Things will go horribly wrong otherwise."
Expand All @@ -15,10 +15,15 @@ if [ -z "$SIRF_PATH" -o ! -d $SIRF_PATH -o ! -d $SIRF_PATH/../STIR ]; then
exit 1
fi

# change build files to also build the STIR executables
APT_GET_INSTALL="sudo apt-get install -y --no-install-recommends"
# install CIL prerequisites
${APT_GET_INSTALL} cython3 python3-h5py python3-wget
# install ASTRA prerequisites
${APT_GET_INSTALL} autotools-dev automake autogen autoconf libtool
# change build files to also build the CIL and ASTRA executables
cd $SIRF_PATH/../..
cmake -DBUILD_CIL:BOOL=ON .
make -j2
cmake --build . -j2

# update/get CIL demos
cd $SIRF_SRC_PATH
Expand All @@ -30,7 +35,8 @@ else
cd ./CIL-Demos
fi

python -m pip install --user nbstripout
#make sure nbstripout is installed and apply filter to CIL-Demos repo
python3 -m pip install --user nbstripout
nbstripout --install

echo "All done"
2 changes: 1 addition & 1 deletion vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Vagrant.configure("2") do |config|
"--medium", "emptydrive"
]

vb.name = "SIRF 3.1.0-rc.1"
vb.name = "SIRF 3.1.0-rc.2"
vb.customize ["modifyvm", :id,
"--clipboard", "bidirectional",
"--vram", "32"]
Expand Down

0 comments on commit 09dbbc4

Please sign in to comment.