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

Improved --try-toolchain overly picky #2592

Closed
bartoldeman opened this issue Sep 26, 2018 · 6 comments
Closed

Improved --try-toolchain overly picky #2592

bartoldeman opened this issue Sep 26, 2018 · 6 comments
Milestone

Comments

@bartoldeman
Copy link
Contributor

The improved --try-toolchain now rejects cases that used to work perfectly, where the toolchain can be "downgraded" to a subtoolchain.

Example:

eb libxc-4.2.3-intel-2018a.eb --try-toolchain=iccifort,2018.3.222-GCC-7.3.0-2.30
== temporary log file in case of crash /localscratch/eb-oe4GFb/easybuild-77BHp6.log
ERROR: No possible mapping from source toolchain spec {'lapack_family': None, 'name': 'iimpi', 'blas_family': None, 'version': '2018a', 'cuda': None, 'comp_family': 'Intel', 'mpi_family': 'IntelMPI'} to target toolchain hierarchy specs [{'lapack_family': None, 'name': 'GCCcore', 'blas_family': None, 'version': '7.3.0', 'cuda': None, 'comp_family': 'GCC', 'mpi_family': None}, {'lapack_family': None, 'name': 'iccifort', 'blas_family': None, 'version': '2018.3.222-GCC-7.3.0-2.30', 'cuda': None, 'comp_family': 'Intel', 'mpi_family': None}]

@ocaisa

@ocaisa
Copy link
Member

ocaisa commented Sep 26, 2018

Hmm, so I'm on the fence with this one. I think that if you really want to do that you should add a --force option and we could revert it back to regex method in that case.

The issue here for me would be that you should be only doing that if you know what you are doing, so protecting against this is reasonable default behaviour.

@boegel
Copy link
Member

boegel commented Sep 26, 2018

+1 on @ocaisa view on this, you should take care when mapping from a full toolchain to a lower subtoolchain that has less capabilities.

So, there should be a hint in the error message that mentions that you can use --force if desired, and then also a clear warning when --force is used.

The error message could also be improved a bit, e.g. ERROR: Toolchain iccifort is not equivalent to intel toolchain in terms of capabilities: ...?

@boegel boegel added this to the 3.7.1 milestone Sep 26, 2018
@bartoldeman
Copy link
Contributor Author

+1 sure I don't mind force. Issue is here that there quite a few easyconfigs compiled with foss or intel that don't use MKL/OpenBLAS or MPI or both; as we try to compile things minimally we often lower the toolchain.

@ocaisa
Copy link
Member

ocaisa commented Sep 26, 2018

If you need a workaround for now you can use

--try-amend=''

since when --try-toolchain is coupled with another try option it will revert to using the regex method.

@ocaisa
Copy link
Member

ocaisa commented Sep 26, 2018

I think we will soon be at a place where we can be stricter on the toolchain used for easyconfigs and put them at the right level from the outset. We would just need to support mapping up to the top level, and that should be do-able fairly easily now.

@boegel
Copy link
Member

boegel commented Oct 6, 2018

fixed in #2605

@boegel boegel closed this as completed Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants