-
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
Building from OpenBLAS 0.3.21 error due to LAPACK_FORTRAN_STRLEN_END #3877
Comments
Ok my bad, when I build the openblas library with the option Still, I need to comment the line I don't understand why there is one more parameter with the function per default now ? |
This is a change introduced with recent LAPACK version 3.10 (which OpenBLAS imports from the Reference-LAPACK project (also known as "netlib"). |
Many thanks @martin-frbg for your explanation. However, I am not sure about the correct way to modify my code:
|
The correct way should be to add the "1" for the length of the single-character "U" argument at the end of your dpbtrf line, but as you wrote you could also comment the definition of LAPACK_FORTRAN_STRLEN_END to stay with the old behaviour (which has been implicated in a few otherwise unexplained problems as seen in the Reference-LAPACK issue ticket and others mentioned therein). |
Thanks @martin-frbg. I close the issue. |
Hello,
I have a c function that use
dpbrtf
as followsThe program compiled and openblas was provided by the debian repo of my distribution:
And it runs fine (assessed with some handcrafted tests). I try to use the last openblas version (0.3.21) : the compilation was fine but when I try to compile my program with the new openblas library I got an error because of missing argument:
When I check in
lapack.h
, I see that whenLAPACK_FORTRAN_STRLEN_END
is defined it adds a new parameter to the functiondpbtrf_
(from lapack.h)I try to comment the line
#define LAPACK_FORTRAN_STRLEN_END
: the program now compile but I get a segmentation fault.I don't know how to handle this point: I search but I did not find what is the meaning of the parameter
size_t
and how to provide this value to the function ?I am aware of the FAQ to replace the library (https://github.com/xianyi/OpenBLAS/wiki/faq#replacing-system-blasupdating-apt-openblas-in-mintubuntudebian).
ps: the objective of using compiled version of openblas is to use my program on another computer were I cannot install packages.
The text was updated successfully, but these errors were encountered: