Sun Performance Library - Can't find BLAS_DSORT
hi guys,
i'm developing some math programs on C and can't seem to locate blas_dsort. i've compiled with the option -dalign -xlic_lib=sunperf and used #include<sunperf.h> in my source code.
am i missing something? i can use other sun performance library functions like isamax.
my machine is a v490 running Solaris 10.
regards
bus_wrecker
Message was edited by:
bus_wrecker
# 2
hey there marc,
i don't think so.
the link to the function is here,
http://docs.sun.com/source/816-2461/blas_dsort.html
unfortunately, when i compile it with the options -dalign -xlic_lib=sunperf, the compiler can't find the correct libraries to link it.
it's a rather easy thing to do, sorting a list. i've implemented it via quicksort, but i could have save a great deal of time, if the function was there.
am i missing out something?
cheers
# 3
Hi,
What version of Studio are you using?
I checked the Studio 12 Early Access and Studio 11 versions of sunperf.h and they only
have the Fortran interface exposed, blas_dsort_. (Note the trailing under-score)
I'll have to track down what happened here, and why the C interface, without the trailing
underscore, is not there anymore.
In the meantime, can you use the Fortran interface? Prototype looks like :
void blas_dsort_(const int*, const int*, double*, const int*)
-Jeremy
# 4
hi there jeremy.
i'm using Studio 11.
i've tried what you've just mentioned but my compiler reports that it is an implicit declaration. what are the necessary arguments for that function?
i probably could try using it in Fortran, but i'm developing in C. that's alright if Sun doesn't have it in C.
regards
julian
# 5
Sorry for the late reply, I've been away for a few days...
For Studio 11, you should be able to use the following interface :
void blas_dsort_(const int*, const int*, double*, const int*)
Note the trailing underscore. This prototype is what your sunperf.h
include file will have.
Also note that the arguments are passed by reference.
Hope this works
-Jeremy