Skip to content

Conversation

@smoors
Copy link
Contributor

@smoors smoors commented Feb 20, 2021

(created using eb --new-pr)
fixes #3579

@smoors smoors added the bug fix label Feb 20, 2021
@boegelbot

This comment has been minimized.

"""
BLAS_MODULE_NAME = ['OpenBLAS']
BLAS_LIB = ['openblas']
BLAS_LIB_MT = ['openblas']
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't actually add -lpthread. And the libopenblas.{a,so} we build actually depends on -lpthread even for the non-MT version since there is only one lib and it's built with OpenMP enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This doesn't actually add -lpthread.

yes it does. did you actually check it? it’s because BLAS_LIB_MT was not defined that -lpthread was not added to LIBBLAS_MT. defining it here fixes it (for me at least).

And the libopenblas.{a,so} we build actually depends on -lpthread even for the non-MT version since there is only one lib and it’s built with OpenMP enabled.

that’s true for the OpenBLAS versions in the official EB repo but people might still want to build it without OpenMP (for example on macOS), and it does not hurt to add it, right?

anyway I don't mind closing this if you think it's not worth it.

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I didn't check the actual output (got sidetracked as usual), was making the comment so you would correct me if needed :-)

Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

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

LGTM

@akesandgren akesandgren modified the milestones: 4.x, 4.3.3 (next release) Feb 22, 2021
@akesandgren
Copy link
Contributor

Going in, thanks @smoors!

@akesandgren akesandgren merged commit 21b1a70 into easybuilders:develop Feb 22, 2021
@boegel boegel changed the title fix BLAS_LIB_MT for OpenBLAS fix $BLAS_LIB_MT for OpenBLAS, ensure -lpthread is included Feb 22, 2021
@boegel boegel modified the milestones: 4.x, release after 4.3.3 Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-lpthtread is missing from $LIBBLAS_MT

4 participants