Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

trouble with descinit_(...)

phaser75
Beginner
731 Views
I'm trying to use descinit function. (I use c compiler)
I think there is no error in syntax but it doesn't work.
The code is like this.

izero = 0;
Cblacs_get(0, 0, &ictxt);
Cblacs_gridinit(&ictxt, "R", nprow, npcol);
Cblacs_gridinfo(ictxt, &nprow, &npcol, &myrow, &mycol);

locr = numroc_(&np, &MB_, &myrow, &izero, &nprow);
locc = numroc_(&np, &NB_, &mycol, &izero, &npcol);

descinit_(desca, &np, &np, &MB_, &NB_, &izero, &izero,
&ictxt, &maxa, &info);

if (ProcID == 0) printf("%d %d %d %d %d %d %d\n",nprow,npcol,myrow,mycol,locr,locc,izero);


The error message is "{ 0, 0}: On entry to DESCINIT parameter number 6 had an illegal value".
Each processor shows the message above.

Could you give me some advice?
Thanks in advance.
0 Kudos
1 Reply
TimP
Honored Contributor III
731 Views
According to the examples, nprow (and other parameters) must be set to suitable values. descinit is documented as presenting the error message when "paramater 6" >= nprow.
0 Kudos
Reply