Conversation
data is not installed by the pip command so it is not useful to clone the repo recursively
Added information about creating a shallow clone with --depth parameter.
| - Command | ||
| - Status | ||
| * - Linux | ||
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`` |
There was a problem hiding this comment.
conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml
CondaHTTPError: HTTP 404 NOT FOUND for url https://tomographicimaging.github.io/scripts/env/cil_development.yml
There was a problem hiding this comment.
For anyone else who is testing the files are here and you need to use them instead of the url:
https://github.com/TomographicImaging/scripts/pull/9/changes
There was a problem hiding this comment.
That's right, I didn't want to link to a PR, so I wrote the link as it will be once #9 is merged
| * - OS | ||
| - Build Command | ||
| * - Linux | ||
| - ``pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX`` |
There was a problem hiding this comment.
I followed the instructions for linux and got:
ModuleNotFoundError: No module named 'cil'
There was a problem hiding this comment.
I take it all back, I made a fresh clone of CIL and it worked
There was a problem hiding this comment.
Every time I make a code change I have to run:
pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX
otherwise IPP doesn't work.
I didn't used to have to do this with the old instructions
There was a problem hiding this comment.
Yes. However, I don't believe this has anything to do with this change, rather with #2145
@casperdcl told me that when issuing pip install a new temporary environment (handled by pip) is created where CMake and scikit-build are installed,
Lines 1 to 16 in f8f2e31
For this reason the build cache is not preserved and you always recompile from scratch. Currently this is not a big problem, as the cilacc library is small but we should do something more about caching the build artifacts.
There was a problem hiding this comment.
I just tested with an environment where I install cmake and scikit-build from conda rather than let it handle by pip and:
pip install --no-deps .is sufficient, i.e. IPP is foundcilaccseems to be built all the times you issuepip install
casperdcl
left a comment
There was a problem hiding this comment.
a bit concerned about:
- repetition in
README.md&developer_guide.rst(would prefer one to link to the other) - lack of mention of conda env names (
create --name <env_name>&&activate <env_name)
| | Linux | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`| Tested | | ||
| | Windows | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`| Tested | | ||
| | MacOS (ARM) | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development_osx.yml`| Experimental | |
There was a problem hiding this comment.
| | Linux | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`| Tested | | |
| | Windows | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`| Tested | | |
| | MacOS (ARM) | `conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development_osx.yml`| Experimental | | |
| | Linux | `conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development.yml`| Tested | | |
| | Windows | `conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development.yml`| Tested | | |
| | MacOS (ARM) | `conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development_osx.yml`| Experimental | |
| find_library(IPP_CORE ${IPP_PRE}ippcore${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | ||
| find_library(IPP_S ${IPP_PRE}ipps${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | ||
| find_library(IPP_VM ${IPP_PRE}ippvm${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | ||
| find_library(IPP_I ${IPP_PRE}ippi${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) |
There was a problem hiding this comment.
| find_library(IPP_CORE ${IPP_PRE}ippcore${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | |
| find_library(IPP_S ${IPP_PRE}ipps${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | |
| find_library(IPP_VM ${IPP_PRE}ippvm${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | |
| find_library(IPP_I ${IPP_PRE}ippi${IPP_POST} PATHS ${IPP_ROOT_DIR} ${IPP_ROOT_DIR}/Library/lib) | |
| find_library(IPP_CORE ${IPP_PRE}ippcore${IPP_POST} PATHS ${IPP_ROOT_DIR} PATH_SUFFIXES Library/lib) | |
| find_library(IPP_S ${IPP_PRE}ipps${IPP_POST} PATHS ${IPP_ROOT_DIR} PATH_SUFFIXES Library/lib) | |
| find_library(IPP_VM ${IPP_PRE}ippvm${IPP_POST} PATHS ${IPP_ROOT_DIR} PATH_SUFFIXES Library/lib) | |
| find_library(IPP_I ${IPP_PRE}ippi${IPP_POST} PATHS ${IPP_ROOT_DIR} PATH_SUFFIXES Library/lib) |
|
|
||
|
|
||
|
|
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`` | ||
| - Tested | ||
| * - Windows | ||
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`` | ||
| - Tested | ||
| * - MacOS (ARM) | ||
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development_osx.yml`` |
There was a problem hiding this comment.
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`` | |
| - Tested | |
| * - Windows | |
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development.yml`` | |
| - Tested | |
| * - MacOS (ARM) | |
| - ``conda env create -f https://tomographicimaging.github.io/scripts/env/cil_development_osx.yml`` | |
| - ``conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development.yml`` | |
| - Tested | |
| * - Windows | |
| - ``conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development.yml`` | |
| - Tested | |
| * - MacOS (ARM) | |
| - ``conda env create -f https://tomography.stfc.ac.uk/scripts/env/cil_development_osx.yml`` |
| set SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CIL=%PKG_VERSION%.dev%GIT_DESCRIBE_NUMBER%+%GIT_DESCRIBE_HASH% | ||
| ) | ||
| pip install . --no-deps | ||
| pip install . --no-deps -Ccmake.define.IPP_ROOT=%CONDA_PREFIX% |
There was a problem hiding this comment.
the CI builds fine without this
| pip install . --no-deps -Ccmake.define.IPP_ROOT=%CONDA_PREFIX% | |
| pip install . --no-deps |
| export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CIL="${PKG_VERSION}.dev${GIT_DESCRIBE_NUMBER}+${GIT_DESCRIBE_HASH}" | ||
| fi | ||
| pip install . --no-deps -Ccmake.args="${extra_args}" | ||
| pip install . --no-deps -Ccmake.args="${extra_args}" -Ccmake.define.IPP_ROOT=${CONDA_PREFIX} |
There was a problem hiding this comment.
the CI builds fine without this
| pip install . --no-deps -Ccmake.args="${extra_args}" -Ccmake.define.IPP_ROOT=${CONDA_PREFIX} | |
| pip install . --no-deps -Ccmake.args="${extra_args}" |
|
|
||
| | OS | Build Command | | ||
| |----|----| | ||
| | Linux | `pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX`| | ||
| | Windows | `pip install --no-deps . -Ccmake.define.IPP_ROOT=%CONDA_PREFIX%`| |
There was a problem hiding this comment.
| | OS | Build Command | | |
| |----|----| | |
| | Linux | `pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX`| | |
| | Windows | `pip install --no-deps . -Ccmake.define.IPP_ROOT=%CONDA_PREFIX%`| | |
| ```sh | |
| pip install -e . | |
| ``` |
| * - OS | ||
| - Build Command | ||
| * - Linux | ||
| - ``pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX`` | ||
| * - Windows | ||
| - ``pip install --no-deps . -Ccmake.define.IPP_ROOT=%CONDA_PREFIX%`` |
There was a problem hiding this comment.
IPP_ROOT shouldn't be needed in a conda environment.
| * - OS | |
| - Build Command | |
| * - Linux | |
| - ``pip install --no-deps . -Ccmake.define.IPP_ROOT=$CONDA_PREFIX`` | |
| * - Windows | |
| - ``pip install --no-deps . -Ccmake.define.IPP_ROOT=%CONDA_PREFIX%`` | |
| .. code::sh | |
| pip install -e . |
|
|
||
| .. code:: sh | ||
|
|
||
| pip install . -Ccmake.define.IPP_ROOT="<path_to_ipp>" -Ccmake.define.OpenMP_ROOT="<path_to_openmp>" |
There was a problem hiding this comment.
| pip install . -Ccmake.define.IPP_ROOT="<path_to_ipp>" -Ccmake.define.OpenMP_ROOT="<path_to_openmp>" | |
| pip install -e . -Ccmake.define.IPP_ROOT="<path_to_ipp>" -Ccmake.define.OpenMP_ROOT="<path_to_openmp>" -Ccmake.define.CMAKE_BUILD_TYPE=RelWithDebInfo |
Description
FindIPP.cmaketo find IPP libraries on WindowsExample Usage
Contribution Notes
Changes
README.md-Ccmake.define.IPP_ROOT=$CONDA_PREFIXwas passedTesting you performed
Local build on:
Checked the artifact documentation produced by GHA.
Linux
On Linux a total of 43 tests are skipped:
Plus these which test compatibility with SIRF (which is not installed)
Windows
Related issues/links
Checklist