-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cil #154
Conversation
Adds CCPi-Framework and CCPi-RGL requires additional packages: cython
version_config.cmake
Outdated
else() | ||
set(DEFAULT_SIRF_TAG v1.1.1) | ||
set(DEFAULT_SIRF_TAG origin/spdhg_from_cil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't merge with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearly not. It needs merging of SyneRBI/SIRF#237 and SyneRBI/SIRF#238 and then it'll go away.
This PR required changes in more or less 3 different repos. I wanted to make a working PR for this one. Once we start merging the other PRs this will be cleaned.
SuperBuild/External_CCPi-RGL.cmake
Outdated
set(PYTHON_DEST "${CMAKE_INSTALL_PREFIX}/python") | ||
endif() | ||
message(STATUS "Python libraries found") | ||
message(STATUS "SIRF Python modules will be installed in " ${PYTHON_DEST}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy-paste mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you refer to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SIRF Python module
-> CIL
?
# Author: Kris Thielemans | ||
# Author: Edoardo Pasca | ||
# Copyright 2017 University College London | ||
# Copyright 2017 STFC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and 2018
SuperBuild/External_CCPi-RGL.cmake
Outdated
# Author: Kris Thielemans | ||
# Author: Edoardo Pasca | ||
# Copyright 2017 University College London | ||
# Copyright 2017 STFC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I can contribute to this piece of code. @KrisThielemans and @evgueni-ovtchinnikov should do this.
a note on copyright dates and notices. If you copied code from somewhere, you need to preserve its copyright data/notice. At the same time, you need to make sure it's up to date with your changes. Seems therefore that you either remove Ben and me, or you keep the original date. sorry |
interesting looks like |
@casperdcl ready to merge? |
@KrisThielemans there's still https://github.com/CCPPETMR/SIRF-SuperBuild/pull/154/files#r330539512 I think needs to be addressed (or ignored - idk) |
apart from that there's all the hardcoded version/branch stuff which may have to change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more very small changes please.
@@ -65,7 +65,8 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr | |||
-DCMAKE_INSTALL_PREFIX=${${proj}_Install_Dir} | |||
-DUSE_THROW_EXCEP=ON | |||
# fixes lib_reg_maths.a `GOMP_parallel' undefined reference linker errors | |||
-DUSE_OPENMP:BOOL=OFF | |||
-DUSE_OPENMP:BOOL=ON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this will break Apple rather dramatically. @rijobro ?
In any case, we need ${proj}_ENABLE_OPENMP
as in https://github.com/CCPPETMR/SIRF-SuperBuild/blob/7a479cfd0b936da129e638932ca8b039f714791e/SuperBuild/External_STIR.cmake#L55-L60. To clean that up, we could have a ENABLE_OPENMP
option in SuperBuild.cmake
, and use its value in the various projects. But feel free to do that with a latter PR (in which case you'd need to raise an issue).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened #269
docker/user_sirf-ubuntu.sh
Outdated
@@ -3,7 +3,7 @@ | |||
set -ev | |||
INSTALL_DIR="${1:-/opt}" | |||
# SIRF | |||
git clone https://github.com/CCPPETMR/SIRF-SuperBuild --recursive -b master $INSTALL_DIR/SIRF-SuperBuild | |||
git clone https://github.com/CCPPETMR/SIRF-SuperBuild --recursive -b add_cil $INSTALL_DIR/SIRF-SuperBuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget!
@paskino, @casperdcl please add some lines to |
PYTHONPATH: prefix PYTHONPATH \n\ | ||
SETUP_PY: execute ${PYTHON_EXECUTABLE} setup.py install \n\ | ||
CONDA: do nothing") | ||
set_property(CACHE PYTHON_STRATEGY PROPERTY STRINGS PYTHONPATH SETUP_PY CONDA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems unneeded
set(PYTHON_STRATEGY "PYTHONPATH" CACHE STRING "\ | ||
PYTHONPATH: prefix PYTHONPATH \n\ | ||
SETUP_PY: execute ${PYTHON_EXECUTABLE} setup.py install \n\ | ||
CONDA: do nothing") | ||
set_property(CACHE PYTHON_STRATEGY PROPERTY STRINGS PYTHONPATH SETUP_PY CONDA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems unneeded
@paskino looks like you squash-merged this which means no git history. @KrisThielemans would you mind if I force-push to master including the history? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
post-merge discussions
@@ -214,6 +216,25 @@ if (BUILD_petmr_rd_tools) | |||
list(APPEND ${PRIMARY_PROJECT_NAME}_DEPENDENCIES petmr_rd_tools) | |||
endif() | |||
|
|||
if ("${PYTHON_STRATEGY}" STREQUAL "CONDA") | |||
set (BUILD_CIL OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paskino should also set(BUILD_CIL_LITE OFF)
?
option(BUILD_CIL "Build CCPi CIL Modules and ASTRA engine" OFF) | ||
option(BUILD_CIL_LITE "Build CCPi CIL Modules" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to have BUILD_CIL
and BUILD_ASTRA
separately? Or BUILD_CIL_STRATEGY CACHE STRING "FULL NO_ASTRA"
?
Ok. Please send an email to the list
Kris
|
@KrisThielemans there was a 15min gap between the merge and my force-push, and the code was in the same state so don't think it should be an issue (@paskino you may be the only one who has to |
* install linux kernel headers closes SyneRBI#149 * move build-essential at linux-headers install time
Adds CIL optimisation and regularisation.
Adds new iterative reconstruction algorithms from CIL.
Currently tested with SPDHG.
Functionality requires: