-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
99 lines (80 loc) · 3.63 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
===================
MAGMA README FILE
===================
--------------------------------------------------------------------------------
* Quick start (make)
Create a make.inc file to indicate your C/C++ compiler, Fortran compiler,
and where CUDA, CPU BLAS, and LAPACK are installed on your system.
Examples are given in the make.inc-examples directory for various
libraries and operating systems. The examples rely on paths such as $CUDADIR
and $MKLROOT being set in your environment.
To compile shared and static libraries in lib, and testers in testing and
sparse/testing:
make
or:
make lib
make testing
make sparse-lib
make sparse-testing
make install prefix=/usr/local/magma
* Quick start (CMake)
There is also a CMake option to configure and build MAGMA.
For more Windows-specific instructions, see README-Windows.
On Unix & MacOS:
Step 0: setup
If you downloaded an official release (e.g., magma-2.5.0.tar.gz), you can
skip this step.
If you checked out MAGMA from bitbucket, you first need to generate all
the precisions. Currently this is done only by the Makefile, not by CMake.
Using a minimal make.inc configuration:
echo "FORT = true" > make.inc
make generate
That should run `python tools/codegen.py` on all the src files and
create CMake.src.
Step 1: compile
mkdir build
cd build
rm -rf * # to clear any cached CMake configuration
cmake [options] .. # or ccmake ..
then:
make
or:
make lib
make testing
make sparse-lib
make sparse-testing
make install
Options include:
-DCMAKE_INSTALL_PREFIX=/path/to/magma, directory to install MAGMA's
headers and libraries, default /usr/local/magma.
-DGPU_TARGET='target', where target includes one or more of:
Fermi, Kepler, Maxwell, Pascal, Volta, Turing,
or valid sm_[0-9][0-9].
-DBLA_VENDOR=vendor, where vendor is one of:
Intel10_64lp, Intel10_64lp_seq, Intel10_64ilp, Intel10_64ilp_seq,
Intel10_32, OpenBLAS, FLAME, ACML, Apple, NAS, Generic.
See https://cmake.org/cmake/help/latest/module/FindLAPACK.html
https://cmake.org/cmake/help/latest/module/FindBLAS.html
-DLAPACK_LIBRARIES='libs', where libs is the libraries to link with for
BLAS and LAPACK, e.g., -DLAPACK_LIBRARIES='-llapack -lblas'.
This overrides CMake's BLAS/LAPACK search.
-DBUILD_SHARED_LIBRARIES=[on|off], to turn on/off shared libraries.
-DUSE_FORTRAN=[on|off], to turn on/off Fortran.
-DFORTRAN_CONVENTION=flag, when USE_FORTRAN=off, where flag is one of:
-DADD_, -DNOCHANGE, -DUPCASE
for whether a Fortran routine such as "dgemm" is called
dgemm_, dgemm, or DGEMM, respectively, in the BLAS/LAPACK library.
ADD_ is most common.
* Detailed installation instructions and further documentation is provided in
docs/html/index.html
or
http://icl.utk.edu/projectsfiles/magma/doxygen/
--------------------------------------------------------------------------------
* Forum
For more information, please refer to the MAGMA homepage and user forum:
http://icl.utk.edu/magma/
http://icl.utk.edu/magma/forum/
The MAGMA project supports the package in the sense that reports of
errors or poor performance will gain immediate attention from the
developers. Such reports, descriptions of interesting applications,
and other comments should be posted on the MAGMA user forum.