The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Scalapack/Mptr() and integer

Open discussion regarding features, bugs, issues, vendors, etc.

Scalapack/Mptr() and integer

Postby john_john » Tue Feb 27, 2007 12:40 pm

Hi,

Using large matrix to be solve by Scalapack, I have a problem:
in Scalapack code, Mptr() function is used to do translation in matrix array.
For example PB_CInV() calls Mptr() with integers as parameters like " (i + j x matrix_size) x sizeof(type)"
For example, if i=10 000, j=10 000, matrix_size=13 000 and sizeof(type)=16 then the result is not defined in an integer of size 4 octets...

What could I do (except define integer on 8 octets....) ?

thanks for your help
john
john_john
 
Posts: 3
Joined: Thu Feb 22, 2007 1:40 pm

Re: Scalapack/Mptr() and integer

Postby ake » Thu May 03, 2007 11:59 am

This particular example fits very well in a 32-bit integer, besides this is actually pointer-arithmetic and can handle double precision matrixes up to ~16300 in size. On a 64-bit system this is not a problem...
ake
 
Posts: 9
Joined: Wed Mar 14, 2007 8:49 am

Postby john_john » Fri Aug 10, 2007 11:26 am

Well, I'am not sure that on 64bits system the integer type is defined on 8 bytes.
I wrok on 6' bits system using GNU compiler 4.4.1, and it is not the case...
john_john
 
Posts: 3
Joined: Thu Feb 22, 2007 1:40 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests