PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Open forum for general discussions relating to PLASMA.

PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby FrnVogt » Mon Nov 18, 2013 4:03 pm

All:

I recently upgraded from PLASMA-2.5.1 to 2.5.2 and ran into a problem with the function PLASMA_Alloc_Workspace_dgels. After the upgrade, I get the error msg "Illigal instruction" and no errorcode value is returned. Therefore, I assume the program abortion happens inside PLASMA_Alloc_Workspace_dgels. When I link the same code w/o any changes with PLASMA-2.5.1, the calculations are performed an correct. Any thoughts?

Thanks,
Frank
FrnVogt
 
Posts: 4
Joined: Mon Jul 08, 2013 10:54 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby mateo70 » Mon Nov 18, 2013 4:35 pm

Hello,

Can you give us a little more details, please ? Like the backtrace when it happens for example. And/or the code that you are using ?

Thanks,
Mathieu
mateo70
 
Posts: 94
Joined: Fri May 07, 2010 3:48 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby FrnVogt » Tue Nov 19, 2013 11:48 am

I have extracted the function call I have a question about and put together the following small test program. If I link it with PLASMA-2.5.1 it, works just fine. If I link it with PLASMA-2.5.2, it crashes and states "Illigal instruction" after printf-ing "we are here (1)". Any help would be appreciated!

Frank
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <plasma.h>

/////////////////////////////////////////////////////////////////////////////////
int main()
{
int LDA = 1000;
int N = 50;

int info;
PLASMA_desc *T;
printf("we are here (0)\n");
PLASMA_Init(4);
printf("we are here (1)\n");
if ( (info=PLASMA_Alloc_Workspace_dgels(LDA,N,&T)) )// causes problem w/ PLASMA-2.5.2 but not with 2.5.1
{
printf("we are here (2a)\n");
PLASMA_Finalize();
printf("we are here (2b)\n");
printf("PLASMA_Alloc_Workspace_dgels failed, error number %i",info);
exit(-1);
}
printf("we are here 3");
return 0;
}
FrnVogt
 
Posts: 4
Joined: Mon Jul 08, 2013 10:54 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby mateo70 » Tue Nov 19, 2013 11:55 am

Can you please run the programm under gdb/idb and send us the backtrace please ?
I'll try to run your test to see if I have the same problem.

Thank you,
Mathieu
mateo70
 
Posts: 94
Joined: Fri May 07, 2010 3:48 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby mateo70 » Tue Nov 19, 2013 12:02 pm

I just compiled your example with the following line:

gcc -o example example.c -Wall `pkg-config --cflags --libs plasma`

And I have no problems. How do you compile it ? And what is the result of the command pkg-config --cflags --libs plasma on your machine ?

Mathieu
mateo70
 
Posts: 94
Joined: Fri May 07, 2010 3:48 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby FrnVogt » Tue Nov 19, 2013 1:11 pm

Mathieu:

thank you very much for your fast reply. Encouraged by your success, I moved the test project to my laptop, recompiled ,... and it works. Hm, maybe I need to rebuild PLASMA-2.5.2 on the first machine. What threw me off was that the old version is working and the new implementation wasn't...

So, I feel a little ashamed now and will rebuild PLASMA.
Thank you again for your time and input.

Frank
FrnVogt
 
Posts: 4
Joined: Mon Jul 08, 2013 10:54 pm

Re: PLASMA-2.5.2 - PLASMA_Alloc_Workspace_dgels

Postby mateo70 » Tue Nov 19, 2013 1:39 pm

No problem. Keep me posted if it still doesn't work. For you information, a new release will come out soon.
Mathieu
mateo70
 
Posts: 94
Joined: Fri May 07, 2010 3:48 pm


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron