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

[OpenBLAS] Disable TARGET=GENERIC on OpenBLAS 0.3.12 and earlier #2598

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

staticfloat
Copy link
Member

Turns out that OpenBLAS 0.3.12 and earlier have some kind of
clang-related code generation bug when built like this.

The issue is that the call to gotoblas->init() here [0] does not
actually call init but instead calls ztrsm_olnncopy, presumably
because of some struct layout issue. I briefly looked into it, but
since it only effects clang and doesn't effect 0.3.13, I'm taking
the coward's way out and just not poking the compiler bear.

[0]
https://github.com/xianyi/OpenBLAS/blob/v0.3.10/driver/others/dynamic.c#L921

X-ref: JuliaLang/julia#39719

Turns out that OpenBLAS 0.3.12 and earlier have some kind of
`clang`-related code generation bug when built like this.

The issue is that the call to `gotoblas->init()` here [0] does not
actually call `init` but instead calls `ztrsm_olnncopy`, presumably
because of some struct layout issue.  I briefly looked into it, but
since it only effects `clang` and doesn't effect `0.3.13`, I'm taking
the coward's way out and just not poking the compiler bear.

[0]
https://github.com/xianyi/OpenBLAS/blob/v0.3.10/driver/others/dynamic.c#L921

X-ref: JuliaLang/julia#39719
@staticfloat staticfloat requested a review from omus February 19, 2021 23:29
@staticfloat staticfloat merged commit f28c7c0 into master Feb 19, 2021
@staticfloat staticfloat deleted the sf/openblas_rebuild branch February 19, 2021 23:50
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.

1 participant