Search found 7 matches

by avgn
Sat Sep 08, 2018 10:08 pm
Forum: User discussion
Topic: Why does my MEXed magma_zgetri code crash?
Replies: 7
Views: 3886

Re: Why does my MEXed magma_zgetri code crash?

My sys admin has figured out why this code crashes. I'll post this here for anyone using Magma from Matlab. I was using a version of gcc version that was incompatible with my version of Matlab. Even though Matlab will compile the code giving only a warning, using the incompatible version of gcc will...
by avgn
Tue Aug 14, 2018 9:53 pm
Forum: User discussion
Topic: Why does my MEXed magma_zgetri code crash?
Replies: 7
Views: 3886

Re: Why does my MEXed magma_zgetri code crash?

Also, I've confirmed that my standalone C code works gcc -lmagma -lcudart Ccode.c -o Ccode.o #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stddef.h> #include <magma_v2.h> #include <cuda_runtime.h> #include <sys/time.h> #include <time.h> int main() { /*initial...
by avgn
Tue Aug 14, 2018 7:35 pm
Forum: User discussion
Topic: Why does my MEXed magma_zgetri code crash?
Replies: 7
Views: 3886

Re: Why does my MEXed magma_zgetri code crash?

Thanks Mark, I've confirmed that other magma functions like magma_zgemm do work as expected. Regarding your comment about magma_int_t. I've checked that both magma_int_t and int (inside the mex file) are 4 bytes. When I add the -DMKL_ILP64, magma_int_t becomes 8 bytes. However, both cases crash.
by avgn
Mon Aug 13, 2018 9:49 pm
Forum: User discussion
Topic: Why does my MEXed magma_zgetri code crash?
Replies: 7
Views: 3886

Why does my MEXed magma_zgetri code crash?

I have followed the documentation closely and am stumped on why my MEXed C code calling magma doesn't work... It is a simple code that: i. gets a matrix from matlab ii. converts from the matlab ordering to magmaDoubleComplex iii. transfers the data to the GPU iv. calls Magma to find the inverse v. t...
by avgn
Sun Aug 05, 2018 4:47 pm
Forum: User discussion
Topic: Why is Magma skipping calculation when using SELL-P format?
Replies: 3
Views: 824

Re: Why is Magma skipping calculation when using SELL-P form

Thanks for taking the time to look into why the SELL-P format calculation is being skipped for me. I sincerely appreciate it. I am wondering if you have received my email last week? Thanks again for your time!
by avgn
Mon Jul 30, 2018 12:55 pm
Forum: User discussion
Topic: Why is Magma skipping calculation when using SELL-P format?
Replies: 3
Views: 824

Why is Magma skipping calculation when using SELL-P format?

Please note that I am cross-posting this question from stackoverflow: https://stackoverflow.com/questions/51586731/magma-algebra-library-skipping-calculation-when-using-sell-p-format : I have written a code to compute the product of a sparse matrix and dense matrix using Magma, which works fine in t...