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

Make OpenBLAS use the LAPACK version specified in the easyconfig. #3701

Merged
merged 2 commits into from Nov 14, 2016

Conversation

akesandgren
Copy link
Contributor

@akesandgren akesandgren commented Oct 22, 2016

The OpenBLAS Makefile only handles large.tgz and timing.tgz and ignores
lapack-x.y.z.tgz. We need to manually unpack the lapack-x.y.z specified
in the easyconfig.

Doing it this way makes it possible to add patches on top of the
unpacked lapack version, which is neccesary to deal with various
compiler problems.

This solves easyconfig issue #1050.

The OpenBLAS Makefile only handles large.tgz and timing.tgz and ignores
lapack-x.y.z.tgz. We need to manually unpack the lapack-x.y.z specified
in the easyconfig.

Doing it this way makse it possible to add patches on top of the
unpacked lapack version, which is neccesary to deal with various
compiler problems.
@boegel boegel added this to the 3.0 milestone Oct 23, 2016
@@ -16,7 +18,7 @@ large_src = 'large.tgz'
timing_src = 'timing.tgz'
sources = [
'v%(version)s.tar.gz',
lapack_src,
(lapack_src, 'mv %s/lapack-netlib %s/lapack-netlib.old; mkdir %s/lapack-netlib; tar -C %s/lapack-netlib --strip-components=1 -zxf %%s' % (obv, obv, obv, obv)),
Copy link
Member

Choose a reason for hiding this comment

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

@akesandgren I would try and shorten this a bit (lines should be < 120 chars long); also, I see no point in keeping lapack-netlib.old around...

lapack_unpack_cmd = "tar -C lapack-netlib --strip-components=1 -zxf %%s"
sources = [
    'v%(version)s.tar.gz',
    (lapack_src, "cd %%(name)s-%%(version)s; rm -rf lapack-netlib/*; %s; cd -" % lapack_unpack_cmd
    ...

Also don't keep a copy of the old lapack-netlib.
@akesandgren
Copy link
Contributor Author

Dropped saving of old lapack-netlib and made a more easily readable lapack_unpack_cmd.

@boegel
Copy link
Member

boegel commented Nov 14, 2016

merged via #3795

@akesandgren akesandgren deleted the openblas-lapack-version-fix branch November 15, 2016 06:44
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.

None yet

2 participants