How to check if my lapack,cbas lib support long double type?

  • Thread starter Thread starter olin
  • Start date Start date
  • Tags Tags
    Support Type
AI Thread Summary
To check if LAPACK and CBLAS libraries support the long double type on Debian Lenny, users can refer to the documentation for the specific library version or write test scripts to verify functionality. If the libraries do not support long double, users can download the source code and recompile with the long-double option. Compiling new libraries will overwrite the existing ones, but it is unlikely to break dependencies unless other programs are hardcoded to require the older versions or cannot locate the new libraries. It is suggested that the default libraries installed by Debian may only support double types, which is why manual compilation is recommended. Users should ensure to use the --long-double flag during compilation. Testing is advised to confirm compatibility with programs that only utilize double types.
olin
Messages
2
Reaction score
0
I'm using Debian Lenny. I want to know how I can check if my lapack,cblas libs support long double type.

If these libs don't support long double. I need to download the source and re-compile them with long-double option. If I do this, do the compiled new libs overwrite the old libs (which don't support long double)? Will this cause problem for other dependent programs that don't need long double?

Thank you very much!
 
Computer science news on Phys.org
It should be in the documentation for whatever version of the libraries you're using. You can also just write test scripts where you try to use the libraries with long doubles that you know will break if unsupported.

In theory it won't break dependency, and if does it's likely cause the other programs are either hardcoded to require one of the older versions or can't find the new one.
 
Thank you for the comments. I'll try to test it using a long double type in the code. But I think the default libs that Debian installs should be double only. (That's why the author of the program that I want to use suggests to download sources for these libs and compile it with long double support manually).

I believes that all re-compiled long double libs will have the same version (and the same name I guess) as the original double libs. I just need to use --long-double when compiling these libs. So I think the new libs will overwrite the old ones. But I don't know if my other programs using only double type can call these new libs without any issues. I know I should test it myself, I just want to ask if anyone done this before for caution. Thank you.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top