Search found 911 matches

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: 1055

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: 3
Views: 742

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: 879

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: 923

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: 727

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: 664

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: 1358

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: 1358

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: 1094

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
by mgates3
Thu Sep 05, 2019 12:50 am
Forum: User discussion
Topic: MAGMA on MAC OS
Replies: 1
Views: 1090

Re: MAGMA on MAC OS

Yes, though since Apple has stopped supporting NVIDIA cards on MacOS Mojave (10.14), anything using CUDA is limited to MacOS 10.13 and older (as I understand it). Compiling MAGMA on MacOS is similar to on Linux. I use the gcc & gfortran compilers from HPC MacOS X: http://hpc.sourceforge.net/ Follow ...