Hi,
I think my message has not been sent, so I am writing again.
As I am seeing inside of the thesting directory there are some functions to generate matrices for tests. I am able to generate rand and randn by this option: --matrix rand.
I think it is calling a LAPACK function. In description of LAPACK we have:
IDIST is INTEGER
Specifies the distribution of the random numbers:
= 1: uniform (0,1)
= 2: uniform (-1,1)
= 3: normal (0,1)
Are we able inside of MAGMA to specify the distribution?
Can I have a rand or randn with specified Condition number?
How is it possible to generate a matrix with a specified Condition number?
Do we have any method to generate matrices with large elements or other distributions in MAGMA which generate a bad condition matrix?
How are you importing the SuiteSparse Matrix Collectioninside of MAGMA?
Cheers
On Jul 6, 2022, at 5:24 PM, Xiniz Ronda <ronda...@gmail.com> wrote:Hi,I think my message has not been sent, so I am writing again.As I am seeing inside of the thesting directory there are some functions to generate matrices for tests. I am able to generate rand and randn by this option: --matrix rand.I think it is calling a LAPACK function. In description of LAPACK we have:IDIST is INTEGERSpecifies the distribution of the random numbers:= 1: uniform (0,1)= 2: uniform (-1,1)= 3: normal (0,1)
Are we able inside of MAGMA to specify the distribution?
Can I have a rand or randn with specified Condition number?
How is it possible to generate a matrix with a specified Condition number?
Do we have any method to generate matrices with large elements or other distributions in MAGMA which generate a bad condition matrix?
How are you importing the SuiteSparse Matrix Collectioninside of MAGMA?
Cheers--
You received this message because you are subscribed to the Google Groups "MAGMA User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magma-user+...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/magma-user/CA%2Bzr%3DE11uaKQ74q0ZsBoQ2HCQr-wUYw_TugiAbM87uNbMcoMJg%40mail.gmail.com.
error -112: cannot allocate memory on CPU host
magma_int_t M, N, lda, n2;...n2=lda*N;magma_smalloc (&d_A, N*ldda)magma_smalloc_cpu(&h_A, n2)
size_t nh=N*Msize_t nd=N*ldda
magma_smalloc (&d_A, nh)
magma_smalloc_cpu(&h_A, nd)
terminate called after throwing an instance of 'std::exception'
what(): std::exception
Aborted (core dumped)
free(): invalid size
On Jul 7, 2022, at 12:51 PM, Xiniz Ronda <ronda...@gmail.com> wrote:Thanks Stanimire,It seems that I have some problems in matrix allocation also. Fro float matrix with large dimention like 47000 I have an error:error -112: cannot allocate memory on CPU hostI changed the second parameter of magma_smalloc to a size_t data type.Original code:magma_int_t M, N, lda, n2;...n2=lda*N;magma_smalloc (&d_A, N*ldda)magma_smalloc_cpu(&h_A, n2)modified code:size_t nh=N*Msize_t nd=N*lddamagma_smalloc (&d_A, nh)magma_smalloc_cpu(&h_A, nd)Now the error is:terminate called after throwing an instance of 'std::exception'
what(): std::exception
Aborted (core dumped)
And if the size is small (400x400) I have this:free(): invalid sizeIt is strange for me . How do you create large matrices?
On Jul 7, 2022, at 2:16 PM, Xiniz Ronda <ronda...@gmail.com> wrote:Thanks. So as I understand I have to add this two line to my current make.inc file, and after that make + make install again.FFLAGS += -fdefault-integer-8
F90FLAGS += -fdefault-integer-8Is it correct?