Search found 203 matches

by fletchjp
Wed Sep 30, 2015 6:03 pm
Forum: User discussion
Topic: Guidance on GPU memory assumptions
Replies: 2
Views: 1353

Re: Guidance on GPU memory assumptions

Mark Thank you, thank you for the NB. That is indeed a bug in my code and I am astonished it was working before. I will do some more exploration as to the other aspect of my problem. I cannot easily print out the matrix data as it is about 7000 square! This is part of a calculation to locate a small...
by fletchjp
Tue Sep 29, 2015 7:44 am
Forum: User discussion
Topic: Guidance on GPU memory assumptions
Replies: 2
Views: 1353

Guidance on GPU memory assumptions

This is a question about the assumptions which can be made about the lifetime of memory on a GPU set by calls to cublas_set_matrix. I have been converting some Fortran code from CPU (Lapack) to GPU operation (MAGMA). In the code I call magmaf_zgetrs_gpu twice using the same factorization to solve tw...
by fletchjp
Sun Sep 27, 2015 5:35 pm
Forum: User discussion
Topic: Suggestion for Magma ZCGESV
Replies: 2
Views: 1029

Re: Suggestion for Magma ZCGESV

I have now implemented a version I have called magma_zcgesv_opt_gpu which gives the option to do either the factorization or the solution or both.

I have it working from Fortran using a modification of the interface code from the other thread.

Thank you for your help.

John
by fletchjp
Sat Sep 26, 2015 12:32 pm
Forum: User discussion
Topic: Guidance on building FORTRAN wrappers
Replies: 5
Views: 1874

Re: Guidance on building FORTRAN wrappers

I have built the attached Fortran program testing_zcgesv_gpu_f by extending the Fortran one for zgetrf_gpu with material suggested by the C++ one for zcgesv_gpu. This routine does a similar calculation to the one in the Fortran one for zgetrf_gpu with magma_zcgesv_gpu as well and prints both sets of...
by fletchjp
Thu Sep 24, 2015 6:26 am
Forum: User discussion
Topic: Guidance on building FORTRAN wrappers
Replies: 5
Views: 1874

Re: Guidance on building FORTRAN wrappers

Mark

Thank you for this. I will give these a try out.

John
by fletchjp
Tue Sep 22, 2015 4:24 am
Forum: User discussion
Topic: Guidance on building FORTRAN wrappers
Replies: 5
Views: 1874

Re: Guidance on building FORTRAN wrappers

Mark

Thank you for the quick response. I have had a look at these files. Presumably I just compile and link these files into my code.

John

P.S. I am currently using Magma 1.6.2
by fletchjp
Mon Sep 21, 2015 6:19 pm
Forum: User discussion
Topic: Guidance on building FORTRAN wrappers
Replies: 5
Views: 1874

Guidance on building FORTRAN wrappers

I am wishing to run some routines such as magma_zcgesv from FORTRAN. There are wrappers for quite a lot of routines but not for this one. I can see that the control subdirectory contains the files magma_zfortran.F90 and magma_zf77.cpp and it looks as though I can use some of the code there as a mode...
by fletchjp
Wed Sep 16, 2015 6:19 pm
Forum: User discussion
Topic: Suggestion for Magma ZCGESV
Replies: 2
Views: 1029

Re: Suggestion for Magma ZCGESV

When I wrote the above I had not yet looked at the Magma version of ZCGESV. I have now done so, and find that it does allow for transpose operations in its interface, unlike the LAPACK one. It has another difference from the LAPACK version as follows. It does the SP factorization using magma_cgetrf_...
by fletchjp
Wed Sep 16, 2015 5:42 pm
Forum: User discussion
Topic: Suggestion for Magma ZCGESV
Replies: 2
Views: 1029

Suggestion for Magma ZCGESV

I am working with various problems which require the repeated solution of N sets of equations Ax = b where there are N copies of A which don't change from one iteration to the next while the b blocks do change. One way of doing this is to run ZGETRF on each A and save the results, so that ZGETRS can...
by fletchjp
Fri Aug 14, 2015 12:35 pm
Forum: User discussion
Topic: Help please to get CUDA 6.5 working on Ubuntu 12.04
Replies: 3
Views: 1409

Re: Help please to get CUDA 6.5 working on Ubuntu 12.04

Hartwig Thank you, I have thought of that. I do need to do that eventually. At the moment I have two computers, chosen to have the same graphics card (GTX 460) when they were new. Both are on Ubuntu 12.04. One dual boots to Windows 7 as well. At the moment the dual boot one will only do low res grap...