- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
my code(test.cpp) is this:
#include <vector>
#include "mkl_scalapack.h"
void main()
{
int N = 1000;
std::vector<int> key(N);
std::vector<double> value(N);
for (int i = 0; i < N; i++) {
key = i+1;
value = i+1;
}
int info;
char id = 'I';
dlasrt2(&id,&N,&value[0],&key[0],&info);
}
my build option is this(on OS X 10.11.3 ,mpi version /opt/intel/compilers_and_libraries_2016.2.146/mac/mkl/lib):
$icpc -mkl test.cpp -o test
Undefined symbols for architecture x86_64:
"_dlasrt2", referenced from:
_main in icpcHc4PnE.o
ld: symbol(s) not found for architecture x86_64
my question:
what's the correct option to build this file?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now I have to use the LAPACK instead of SCALPACK, it works....
int info = LAPACKE_dlasrt('I',N,&value[0]);
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
pls try -mkl:cluster. -mkl option, by default links with SMP libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now I have to use the LAPACK instead of SCALPACK, it works....
int info = LAPACKE_dlasrt('I',N,&value[0]);
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page