- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bool cylpotsolver::solveLinSys3()
{
//same as solveLinSys2 except slightly rearranged
calcRowsandCols();
long long *pt = new long long[64];
for(int i=0; i<64; i++)
pt[i]=0;
int *iparm = new int[64];
iparm[0] = 0; //use default parameters
iparm[1] = 3;
iparm[26]=0; //check data structure if equal to 1
iparm[59] = 0; //use in-core pardiso
int maxfct = 1;
int mnum = 1;
int mtype = 13; //unsymmetric and complex matrix
int phase = 13; //analysis,numerical factorization,solve,iterative refinement
int numeqs = nrad*nz;
int *perm;
int nrhs = 1;
int msglvl = 0;
complex16 *x = new complex16[nrad*nz];
int error;
for(int n=0; n<=ntheta/2; n++)
{
calcLHSMatrix(n);
calcRHSVector(n);
cout<<"Solving for n = "<
/*
Call the linear system solver. See the Intel math kernel library docs for
more info
*/
cout<<"calling solver...n";
PARDISO(pt, &maxfct, &mnum, &mtype, &phase, &numeqs, lhsmatrix, rows,
columns, perm, &nrhs, iparm, &msglvl, rhsvector, x, &error);
cout<<"error = "<
phase = -1; //clear memory used by PARDISO
cout<<"clearing memory...n";
PARDISO(pt, &maxfct, &mnum, &mtype, &phase, &numeqs, lhsmatrix, rows,
columns, perm, &nrhs, iparm, &msglvl, rhsvector, x, &error);
//u_(-n)=conj(u_n)
for(int i=0; i
{
if(n==0)
{
potdata[i*ntheta].re = x[i].re;
potdata[i*ntheta].im = x[i].im;
}
else if(n==ntheta/2)
{
potdata[ntheta/2+i*ntheta].re=x[i].re;
potdata[ntheta/2+i*ntheta].im=x[i].im;
}
else
{
potdata[n+i*ntheta].re=x[i].re;
potdata[n+i*ntheta].im=x[i].im;
potdata[ntheta-n+i*ntheta].re=x[i].re;
potdata[ntheta-n+i*ntheta].im=-x[i].im;
}
}
// cout<<"done."<
}
delete [] x,pt,iparm,perm;
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ringle,
this is well known limitation with the latest Intel MKL's version dealt with XCode 3.2.
Please refer tothehttp://software.intel.com/en-us/articles/known-limitations-in-intel-mkl-10-2/ article.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ringle,
this is well known limitation with the latest Intel MKL's version dealt with XCode 3.2.
Please refer tothehttp://software.intel.com/en-us/articles/known-limitations-in-intel-mkl-10-2/ article.
--Gennady
It should be noticed that this limitation doesn't affect dynamic libraries.
the similar probelm was disscused inhttp://software.intel.com/en-us/forums/showthread.php?t=68104as well.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be noticed that this limitation doesn't affect dynamic libraries.
the similar probelm was disscused inhttp://software.intel.com/en-us/forums/showthread.php?t=68104as well.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this link: http://software.intel.com/en-us/forums/showthread.php?t=68104
Try linking with dylibs instead of static libs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this link: http://software.intel.com/en-us/forums/showthread.php?t=68104
Try linking with dylibs instead of static libs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1)Yes, you can try to use only dynamic linking without this libraries( these libs are deprecated libraries since the next update of MKL - MKL 10.2 Update 2).
2) the snip of the code you provided is not complete. Could you get the testcase and the input data you are using for reproducing the problem? You can use private tread for sending this data. We will check this problem.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1)Yes, you can try to use only dynamic linking without this libraries( these libs are deprecated libraries since the next update of MKL - MKL 10.2 Update 2).
2) the snip of the code you provided is not complete. Could you get the testcase and the input data you are using for reproducing the problem? You can use private tread for sending this data. We will check this problem.
--Gennady
I ran across this when I was testing a fresh install of the 11.1 compilers on SL. You have a testcase in hand already - it's in the mkl/tests/ directory:
[waisaacs@waisaacsmacbookpro ~]$ cd /opt/intel/Compiler/11.1/067/bin
[waisaacs@waisaacsmacbookpro bin]$ . iccvars.sh intel64
[waisaacs@waisaacsmacbookpro bin]$ . ifortvars.sh intel64
[waisaacs@waisaacsmacbookpro bin]$ echo $MKLROOT
/opt/intel/Compiler/11.1/067/Frameworks/mkl
[waisaacs@waisaacsmacbookpro bin]$ ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20090827 Package ID: m_cprof_p_11.1.067
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
[waisaacs@waisaacsmacbookpro bin]$ cd ../Frameworks/mkl/tests/blas/
[waisaacs@waisaacsmacbookpro blas]$ make libem64t
make s1sparse.res d1sparse.res c1sparse.res z1sparse.res sblat1.res dblat1.res cblat1.res zblat1.res cblat1_f.res sblat2.res dblat2.res cblat2.res zblat2.res sblat3.res dblat3.res cblat3.res zblat3.res EXT=a _IA=em64t RES_EXT=lib
mkdir -p ./_results/intel_lp64_parallel_em64t_lib
ifort -w -O0 -vec-report0 source/s1sparse.f source/auxspars.f -L"/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t" "/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t"/libmkl_intel_lp64.a "/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t"/libmkl_core.a "/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t"/libmkl_core.a -L"/opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t" -liomp5 -lpthread -o _results/intel_lp64_parallel_em64t_lib/s1sparse.out
ld: in /opt/intel/Compiler/11.1/067/Frameworks/mkl/lib/em64t/libmkl_core.a(_mc3_cscal.o), ObjectFileAddressSpace::mappedAddress(0xFFFFFFFFFFFFFFFC) not in any section
make[1]: *** [s1sparse.res] Error 1
make: *** [libem64t] Error 2
Cheers,
William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
make[1]: *** [s1sparse.res] Error 1
make: *** [libem64t] Error 2
Perhaps redundant, but this is mkl 10.2 update 2:
from the examples/versionquery directory:
[waisaacs@waisaacsmacbookpro versionquery]$ make libem64t
make getversionstring_c.res getversion_tst.res getversionstring_f.res _IA=em64t EXT=a RES_EXT=lib
mkdir -p ./_results/intel_lp64_parallel_em64t_lib
...
[waisaacs@waisaacsmacbookpro versionquery]$ cat _results/intel_lp64_parallel_em64t_lib/getversion_tst.res
Major version: 10
Minor version: 2
Update version: 2
Product status: Product
Build: 20090814
Processor optimization: Intel Core 2 Duo Processor
================================================================
[waisaacs@waisaacsmacbookpro versionquery]$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try to use dynamic linking by make soem64t instead of libem64t.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try to use dynamic linking by make soem64t instead of libem64t.
--Gennady
Hello,
We have recently released Compiler Professional Edition for Mac OS version 11.1 update 3.
The problem when static linking of MKL in XCode was resolved in this version.
You can update this version of Compiler into intel registration center( https://registrationcenter.intel.com/ ).
--Gennady
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page