Search found 902 matches

by mgates3
Mon Oct 07, 2019 4:01 pm
Forum: User discussion
Topic: Best solution for solving hundreds of small linear systems
Replies: 3
Views: 717

Re: Best solution for solving hundreds of small linear systems

Yes, unfortunately here the time gets rounded down. But the performance is reflected in the Gflop/s rate. You can compute the approximate time using the formula:

2/3 n^3 * batch_count / (gflop/s)

For instance

2/3 * 100^3 * 500 / 158.36e9 = 0.0021 sec.

-mark
by mgates3
Mon Oct 07, 2019 2:01 pm
Forum: User discussion
Topic: How to detect different MAGMA flavors at compile time?
Replies: 2
Views: 830

Re: How to detect different MAGMA flavors at compile time?

MAGMA 1.0 is quite old, so I personally wouldn't bother. If you insist, there are MAGMA_VERSION_MAJOR, _MINOR, and _MICRO macros. See include/magma_types.h. clMAGMA is not actively maintained — even AMD's clBLAS is a couple years old at this point. clMAGMA uses HAVE_clAmdBlas or HAVE_clBLAS macros, ...
by mgates3
Thu Oct 03, 2019 11:06 am
Forum: User discussion
Topic: How to solve polynomial equations?
Replies: 2
Views: 399

Re: How to solve polynomial equations?

This forum is for the MAGMA linear algebra library for GPUs (http://icl.utk.edu/magma/). It doesn't solve polynomial equations. Perhaps you are intending the Magma Computational Algebra System (http://magma.maths.usyd.edu.au/magma/).
-mark
by mgates3
Fri Sep 27, 2019 2:09 pm
Forum: User discussion
Topic: Problem of xlf+xlc for magma has been resolved.
Replies: 3
Views: 615

Re: Problem of xlf+xlc for magma has been resolved.

When using xlf, use -DNOCHANGE instead of -DADD_ in the make.inc file when compiling MAGMA. Then it will use the correct Fortran naming convention for IBM's Fortran. Ideally, the whole software stack — e.g., BLAS, LAPACK, MAGMA, your application — are compiled using the same set of compilers (e.g., ...
by mgates3
Wed Sep 25, 2019 11:43 am
Forum: User discussion
Topic: MAGMA 2.5.1 compilation problem on windows
Replies: 5
Views: 746

Re: MAGMA 2.5.1 compilation problem on windows

We'll look into it, though it might take a little while as we don't have any Windows machines readily setup for testing. All our development is on Linux and macOS.
-mark
by mgates3
Fri Sep 20, 2019 12:57 pm
Forum: User discussion
Topic: LOBPCG single precision fails to converge for most problems
Replies: 2
Views: 608

Re: LOBPCG single precision fails to converge for most problems

These problems have condition numbers >= 1e6, which mean they likely won't work well in single precision, which has a precision of only 1e-7. Roughly, single precision has 7 digits of accuracy, and a problem loses log10( cond ) digits of accuracy, in this case about 6, meaning there is at most 1 cor...
by mgates3
Wed Sep 18, 2019 12:01 pm
Forum: User discussion
Topic: axpy_batched
Replies: 1
Views: 616

Re: axpy_batched

So you really want scal_batched: y_i = alpha * y_i for i = 1, ..., batch_size Is that right? Are your vectors scattered in memory, or packed into a single array? If in a single array, would a matrix scale function meet your needs, i.e., A = alpha * A for an m-by-batch_size matrix A. -mark
by mgates3
Tue Sep 17, 2019 2:33 pm
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 1020

Re: Compilation problem of magma on ibm power 9 for olcf summit system

I'm confused by your link line: lessl -L/sw/summit/essl/... Did you chop off the front part of that line that shows the actual linker (say, xlc++)? From the errors, the linking appears to be missing OpenMP functions. You need to specify the same OpenMP option when linking as when compiling, e.g., fo...
by mgates3
Mon Sep 16, 2019 8:54 pm
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 1020

Re: Compilation problem of magma on ibm power 9 for olcf summit system

copysignf is part of the C standard library, in math.h, not BLAS or LAPACK. The make.inc file may need -lm added to the end of LIBS for the math library. Shouldn't need any recompiling, just finish linking.
-mark
by mgates3
Fri Sep 13, 2019 2:03 pm
Forum: User discussion
Topic: Is there a step by step tutorial on installing magma?
Replies: 2
Views: 976

Re: Is there a step by step tutorial on installing magma?

Are you following the steps using CMake in README-Windows? Can you be more specific about what happened and when the error occurred?
-mark