Skip to content

Make sure that Netlib LAPACK respects FFLAGS #3390

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

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Sep 30, 2021

OpenBLAS allows users to specify FFLAGS and then uses override to append additional
options. However, without such an override in lapack's make.inc, lapack would use the external
FFLAGS, rather than the ones being computed by OpenBLAS. For example the DEBUG=1 flag
would not apply to LAPACK code. This is all a bit messy but forced by the integration with netlib
lapack. Note that CFLAGS already has this override for the same reason. It is possible that
other variables here should have a similar override, but I think for most of the other ones, OpenBLAS's
build system does not append to the flags passed in by the user.

cc @staticfloat @ianatol

OpenBLAS allows users to specify `FFLAGS` and then uses `override` to append additional
options. However, without such an override in lapack's make.inc, lapack would use the external
FFLAGS, rather than the ones being computed by OpenBLAS. For example the `DEBUG=1` flag
would not apply to LAPACK code. This is all a bit messy but forced by the integration with netlib
lapack. Note that `CFLAGS` already has this override for the same reason. It is possible that
other variables here should have a similar override, but I think for most of the other ones, OpenBLAS's
build system does not append to the flags passed in by the user.
@martin-frbg
Copy link
Collaborator

Right, thanks. The overrides have been added on a case-by-case basis so far, and I do not think any of the remaining variables need them.
(DEBUG=1 may be a corner case, as in if you set your own FFLAGS you might as well put the -g there if you know you need it, but things could get interesting if the predefined FFLAGS dropped the recursive that a number of functions in Reference-LAPACK need)

@martin-frbg martin-frbg added this to the 0.3.18 milestone Oct 1, 2021
@martin-frbg martin-frbg merged commit c34e63f into OpenMathLib:develop Oct 1, 2021
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