-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
cblas.h header is unusable in its current state #13
Comments
Furthermore the header uses size_t but doesn't include the stddef.h header. There should be a line: |
Closed by 5e7f29b. Fixed blasint undefined bug in <cblas.h> file. |
Hi kiwifb, Thank you for reporting this bug. I fixed this on x86 branch Thanks again Xianyi Zhang
|
The stddef.h part should be fine but I don't like the inclusion of common.h. Ultimately you want to be able to package this for people to use. And in common.h the definition depends on the parameter USE64BITINT which could lead to some interesting situations. I guess you don't have an "install" target yet so you are still considering this a "do it yourself" operation. Ideally for a final product, we want the definition of "blasint" to be inside cblas.h and not depend of USE64BITINT. I'll see if I can code this for you. |
Hi kiwifb, 2011/3/25, kiwifb
There is INTERFACE64 flag in Makefile.rule. If you set this flag, it
Thanks
|
Thanks for pointing that header out. So one would need common.h and config.h. From the shipping point of view it would be nice if the relevant part of these 2 files were merged or added to cblas.h. I am not against shipping extra headers but then they may need less generic names. Thanks for answering to my comments. |
|
I notice perl is needed to generate a number of files. It should be fairly easy to generate a cblas.h file from a template with a small perl script - or even just a file called openblas-config.h. While it is probably overblown, I am thinking of the way configuration files and Makefiles are generated in ntl. |
I tried to compile a few packages against openblas and all of those which use the headers provided by the cblas implementation rather than their own internal headers have failed.
The problem is that blasint is not defined in cblas.h - it comes form common.h. However unless you design a package from scratch it is not a header you will usually look for when compiling against cblas.
So, some final cblas.h headers should be produced that include a definition for blasint.
The text was updated successfully, but these errors were encountered: