Search found 21 matches

by Klausb
Mon Apr 02, 2018 5:05 am
Forum: User discussion
Topic: Heterogeneous and multi-GPU computing concept of MAGMA?
Replies: 0
Views: 827

Heterogeneous and multi-GPU computing concept of MAGMA?

Hello, I use an application which solves 4 equations using sparse LA: Equation A needs more than 200 iterations so it's worthwhile to move it to GPUs (two or more) Equations B, C and D require 1, sometimes 2 iterations so they should remain on the CPU because the PCIe bottleneck would slow them down...
by Klausb
Sat Mar 31, 2018 1:56 pm
Forum: User discussion
Topic: mixed/multi precision: Error correction on the CPU?
Replies: 1
Views: 495

mixed/multi precision: Error correction on the CPU?

Hello,

is it possible to do the error correction of the mixed/multi precision LA solvers on the CPU and run only the inner/lower precision loop on the GPU?

Klaus
by Klausb
Tue Jan 16, 2018 5:39 pm
Forum: User discussion
Topic: clMAGMA sparse LA roadmap?
Replies: 0
Views: 2925

clMAGMA sparse LA roadmap?

Hello, are there any plans to implement at least some sparse LA solvers in clMAGMA? (E.g. CG + preconditioner and BiCGStab, GMRES or IDR + preconditioner i.e. a combination of solvers that can be used to solve problems with symmetric and asymmetric matrices) Otherwise, how should I approach the exer...
by Klausb
Mon Oct 23, 2017 6:25 am
Forum: User discussion
Topic: Testing with fp32 GPU?
Replies: 0
Views: 892

Testing with fp32 GPU?

Hello, to debug my application, I am wondering whether there's a solver which does the fp64 (double) computation on the CPU? An alternative (possibly better) approach would be to convert the matrix, rhs and x to float, do the computation in fp32 on the GPU and convert it back to double (fp64). Is th...
by Klausb
Thu Oct 19, 2017 3:18 pm
Forum: User discussion
Topic: Matrix export to matrix market file contains only header
Replies: 2
Views: 800

Re: Matrix export to matrix market file contains only header

Here the code section: // Initialize MAGMA and create some LA structures. magma_init(); magma_dopts opts; magma_queue_t queue; magma_queue_create( 0, &queue ); magma_d_matrix A={Magma_CSR}, dA={Magma_CSR}; magma_d_matrix b={Magma_CSR}, db={Magma_CSR}; magma_d_matrix x={Magma_CSR}, dx={Magma_CSR}; //...
by Klausb
Thu Oct 19, 2017 10:20 am
Forum: User discussion
Topic: Matrix export to matrix market file contains only header
Replies: 2
Views: 800

Matrix export to matrix market file contains only header

Hello, I tried to export the matrices from my application using the MAGMA export function: magma_dwrite_csr_mtx(A, MagmaRowMajor, "sym_matrix_p.mtx", queue); In any case, a file containing only the header information was created. File content: %%MatrixMarket matrix coordinate real general 40800 4080...
by Klausb
Tue Oct 17, 2017 10:57 am
Forum: User discussion
Topic: How to copy solution vector x back to my application?
Replies: 2
Views: 1692

Export: How to iterate over MAGMA solution vector?

Hello, export using magma_dvget( x, &m, &n, &sol, queue ); seems not to work for my application. I created the following export function but I don't know how to iterate over the magma solution vector. Here's my export function: void export_vector ( magma_d_matrix &magma_vec, // MAGMA x vector (solut...
by Klausb
Sun Oct 15, 2017 7:14 am
Forum: User discussion
Topic: How to retrieve final_res and numiter?
Replies: 4
Views: 1102

extended example_sparse

Hello Hartwig, there's the code: // This is a simple standalone example. See README.txt #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "magma_v2.h" #include "magmasparse.h" // ------------------------------------------------------------ // This is an example ho...
by Klausb
Sat Oct 14, 2017 9:02 am
Forum: User discussion
Topic: How to retrieve final_res and numiter?
Replies: 4
Views: 1102

Retrieving final_res and numiter - I always get the same res

In the meantime, I tried to figure it out based on the example related to struct magma_z_solver_par which mentions the variables final_res and numiter. I added them to the magma example that comes with the install source code called "example_sparse": printf("%i\n", opts.solver_par.numiter); printf("...
by Klausb
Thu Oct 12, 2017 3:21 pm
Forum: User discussion
Topic: How to copy solution vector x back to my application?
Replies: 2
Views: 1692

How to copy solution vector x back to my application?

Hello, I am trying to copy the soution x back to the application following the MAGMA example_sparse.c Foam::scalarField &solution; // solution vector of the application // copy MAGMA solution and back to the application code magma_dvget( x, n, 1, solution, queue ); I get the following compile error,...