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

Enable ceres & suitesparse for Windows. #10

Merged
merged 4 commits into from
Apr 22, 2020

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Apr 14, 2020

Checklist

  • Used a fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

@conda-forge-admin, please rerender

@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

hmm, it seems the suitesparse-feedstock needs a new build?

Package openblas conflicts for:
suitesparse=5.1 -> openblas[version='0.2.20|0.2.20.*|>=0.3.3,<0.3.4.0a0']
openblas=0.3.6
suitesparse=5.1 -> blas==1.1=openblas -> openblas
blas==1.1=openblas -> openblas

@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

Waiting for this. conda-forge/suitesparse-feedstock#65

recipe/meta.yaml Outdated
skip: true # [win and vc<14]
features: # [win]
- blas_{{ variant }} # [win]
Copy link
Contributor

Choose a reason for hiding this comment

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

the blas variant feature is deprecated, please remove this

recipe/meta.yaml Outdated
- libcblas # [unix]
- liblapack # [unix]
- blas 1.1 {{ variant }} # [win]
- openblas # [win]
Copy link
Contributor

Choose a reason for hiding this comment

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

here too, remove blas variant & openblas

recipe/meta.yaml Outdated
@@ -1,4 +1,5 @@
{% set version = "1.14.0" %}
{% set variant = "openblas" %}
Copy link
Contributor

Choose a reason for hiding this comment

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

you can also drop this

recipe/meta.yaml Outdated
- tbb
- eigen

run:
- blas 1.1 # [win]
Copy link
Contributor

Choose a reason for hiding this comment

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

and this

@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

@conda-forge-admin, please rerender

@seanyen seanyen marked this pull request as ready for review April 14, 2020 18:12
@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

@jschueller Thanks for those tips! It seems now the conda is happy about the dependencies.

@seanyen
Copy link
Contributor Author

seanyen commented Apr 14, 2020

@jschueller Btw, I am adding myself as a co-maintainer. Hope you don't mind. :)

@seanyen
Copy link
Contributor Author

seanyen commented Apr 15, 2020

@jschueller Sorry to spam again. I think now the change is ready for merge. I am planning to add https://github.com/cartographer-project/cartographer feedstock and which depends on this change. Thanks!

recipe/meta.yaml Outdated
- libblas # [unix]
- libcblas # [unix]
- liblapack # [unix]
- blas 1.1 # [win]
Copy link
Contributor

Choose a reason for hiding this comment

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

blas 1.1 should not be here either

@seanyen
Copy link
Contributor Author

seanyen commented Apr 15, 2020

@conda-forge-admin, please rerender

recipe/meta.yaml Outdated
@@ -26,7 +26,7 @@ requirements:
- libblas # [unix]
- libcblas # [unix]
- liblapack # [unix]
- blas 1.1 # [win]
- blas # [win]
Copy link
Contributor

Choose a reason for hiding this comment

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

there is no blas package, only libblas

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry I don’t follow. What does that mean? Btw, for the original my change, I was following https://conda-forge.readthedocs.io/en/latest/blas.html and the example in suitesparse-feedstock. I am pretty much just “monkey see monkey do”.

Copy link
Contributor

Choose a reason for hiding this comment

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

You dont need this since ceres doesnt care about the implementation: libblas is enough.

Copy link
Contributor Author

@seanyen seanyen Apr 15, 2020

Choose a reason for hiding this comment

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

Ah, I see. Just a thought, maybe for easier maintenance, we can remove the libblas, libclas, and liblapack all together? They are deps from suitesparse anyway.

@seanyen
Copy link
Contributor Author

seanyen commented Apr 15, 2020

@conda-forge-admin, please rerender

@github-actions
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.

@seanyen
Copy link
Contributor Author

seanyen commented Apr 16, 2020

@jschueller Let me know any additional changes to make. Hope we can get this enabled for Windows build. Thanks.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I was trying to look for recipes to lint for you, but it appears we have a merge conflict.
Please try to merge or rebase with the base branch to resolve this conflict.

Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

@seanyen seanyen marked this pull request as draft April 18, 2020 19:53
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@seanyen
Copy link
Contributor Author

seanyen commented Apr 19, 2020

@conda-forge-admin, please rerender

@seanyen seanyen marked this pull request as ready for review April 19, 2020 05:17
@seanyen
Copy link
Contributor Author

seanyen commented Apr 19, 2020

@jschueller The new suitesparse is merged and now on the conda-forge. And this is ready for review and merge. Thanks!

@jschueller
Copy link
Contributor

you build with suitesparse 5.4 but for runtime 5.1 is still pulled, this seems inconsistent to me.
maybe you'd want to pin suitesparse to 5.4 for the run requirements too, unless the pinning update gets merged first:
conda-forge/conda-forge-pinning-feedstock#564

@seanyen
Copy link
Contributor Author

seanyen commented Apr 21, 2020

@jschueller Thanks for pointing out the version issue. I added the run_exports to the suitesparse, and by that way it should pull the version with it built against. conda-forge/suitesparse-feedstock#66

@seanyen
Copy link
Contributor Author

seanyen commented Apr 22, 2020

@conda-forge-admin, please rerender

@seanyen
Copy link
Contributor Author

seanyen commented Apr 22, 2020

@jschueller Finally the suitesparse pinning went through! And the CI looks green and consumes the latest 5.4 suitesparse for Windows.

@jschueller jschueller merged commit f8be20e into conda-forge:master Apr 22, 2020
@seanyen seanyen deleted the seanyen/windows branch April 22, 2020 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants