Skip to content
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

ipp 2021.10 build fix #1583

Merged
merged 4 commits into from
Nov 24, 2023
Merged

ipp 2021.10 build fix #1583

merged 4 commits into from
Nov 24, 2023

Conversation

casperdcl
Copy link
Member

@casperdcl casperdcl commented Nov 21, 2023

Describe your changes

Describe any testing you have performed

Please add any demo scripts to CIL-Demos/misc/

Link relevant issues

TODO in follow-ups:

Checklist when you are ready to request a review

  • I have performed a self-review of my code
  • I have added docstrings in line with the guidance in the developer guide
  • I have implemented unit tests that cover any new or modified functionality
  • CHANGELOG.md has been updated with any functionality change
  • Request review from all relevant developers
  • Change pull request label to 'Waiting for review'

Contribution Notes

Please read and adhere to the developer guide and local patterns and conventions.

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License.
  • I confirm that the contribution does not violate any intellectual property rights of third parties

Copy link
Member

@lauramurgatroyd lauramurgatroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had a quick look at the changes to see if this could solve our problems in other repos, and noticed some requests for reverting headers etc.

I will re-review fully when the actions are working 😄

.github/PULL_REQUEST_TEMPLATE.MD Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
recipe/build.sh Outdated Show resolved Hide resolved
scripts/create_local_env_for_cil_development.sh Outdated Show resolved Hide resolved
@casperdcl casperdcl force-pushed the dev-scripts branch 2 times, most recently from 499c62c to cb926ab Compare November 23, 2023 00:04
@gfardell
Copy link
Member

There's a lot of unrelated changes in this so it's hard to check the impact. Some builds are failing on GHA and Jenkins but not all so it would be good to know what's different between these.

Was the ipps.h being added to the C++ code the only fix here? I don't like including conda requirements of '>' as this is impossible to restrict in the future if there are issues. If we need to pin a particular version we should.

The build scripts are conveniences for creating environments are conveniences for us and I think having more options is better than less. We Can support the environment file for users? This is something that we need to sort out and simplify in the developer/contribution guide.

@gfardell
Copy link
Member

The GHA and Jenkins issue is the high priority thing here. And we need to locally run conda build on linux and windows to check the fix works for each version combination.

@casperdcl casperdcl changed the title build fixes ipp 2021.10 build fix Nov 23, 2023
@casperdcl
Copy link
Member Author

unrelated changes

moved to separate PRs; please re-review :)

Some builds are failing on GHA and Jenkins

can you post links (URLs) to failing builds?

I don't like including conda requirements of '>' as this is impossible to restrict in the future if there are issues

Please explain "impossible to restrict in the future if there are issues".

Given that '>' is used a lot already before this PR, please do open a separate GH issue to discuss why you think they should all be removed.

Copy link
Contributor

@paskino paskino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Although Intel may break again compatibility in the future, I don't think having >= is detrimental. At least we know that it won't work with version lower than 2021.10.

Comment on lines +26 to +29
-DLIBRARY_INC=$CONDA_PREFIX/include \
-DOPENMP_LIBRARIES=${CONDA_PREFIX}/lib \
-DOPENMP_INCLUDES=${CONDA_PREFIX}/include \
-DOPENMP_LIBRARIES=${CONDA_PREFIX}/lib
else
echo "something else";
-DCMAKE_INSTALL_PREFIX=$PREFIX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you try on Darwin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no and I'm also uncertain about whether it may need e.g. dylib. I think I'll add a GHA macos test in a follow-up. wdyt?

Copy link
Member

@gfardell gfardell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The windows builds all worked. If Linux worked if happy to merge.

@gfardell
Copy link
Member

You should add yourself here: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt

@lauramurgatroyd
Copy link
Member

Please update the Changelog https://github.com/TomographicImaging/CIL/blob/master/CHANGELOG.md

@casperdcl casperdcl merged commit 9cc1783 into master Nov 24, 2023
1 check failed
@casperdcl casperdcl deleted the dev-scripts branch November 24, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for review
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants