The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

newbie question regarding CBLAS

Open discussion regarding features, bugs, issues, vendors, etc.

newbie question regarding CBLAS

Postby stockhausen » Tue Aug 21, 2007 7:44 pm

Hello, I am working with BLAS and LAPACK in C (using gcc in cygwin) and I have had no problems until now. Since my data types are all doubles, I used the double percision BLAS functions, such as cblas_dsymv (the d for double percision) instead of cblas_ssymv (the s for single percision).

However, right now I'm dealing with very large numbers and as a result I have to use long doubles instead of just double. Unfortunately, it appears that there is no long double equivalent for BLAS.

Is there anyway around this?

Thanks
stockhausen
 
Posts: 7
Joined: Tue Aug 21, 2007 5:19 pm

Postby Julien Langou » Tue Aug 21, 2007 8:06 pm

You are pretty much stucked as far as optimized BLAS libraries are concerned.
I am not aware of any optimized BLAS libraries supporting long double.
(The reason being that long double is not a clearly defined type, it can depends on the
compiler for example)

The only option I see for you is to write your own unoptimized BLAS.

Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby stockhausen » Tue Aug 21, 2007 8:35 pm

Thanks for the promt reply. I run the same sort of computations in MATLAB, and I have no problems in that enviornment. My understanding was that MATLAB itself uses BLAS as well and for this reason MATLAB computations are highly optimized. Am I wrong in this matter?

Thanks again.
stockhausen
 
Posts: 7
Joined: Tue Aug 21, 2007 5:19 pm

Postby Julien Langou » Wed Aug 22, 2007 11:22 am

Well you should ask Mathworks then. I have no idea what they are doing, sorry about that.
Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests