Afficher la pageAnciennes révisionsHaut de page Cette page est en lecture seule. Vous pouvez afficher le texte source, mais ne pourrez pas le modifier. Contactez votre administrateur si vous pensez qu'il s'agit d'une erreur. ====== MAGMA ====== **MAGMA Matrix Algebra on GPU and Multicore Architectures** The MAGMA project aims to develop a dense linear algebra library similar to LAPACK but for heterogeneous/hybrid architectures, starting with current "Multicore+GPU" systems. Included are routines for the following algorithms: * LU, QR, and Cholesky factorizations in both real and complex arithmetic (single and double); * Hessenberg, bidiagonal, and tridiagonal reductions in both real and complex arithmetic (single and double); * Linear solvers based on LU, QR, and Cholesky in both real and complex arithmetic (single and double); * Eigen and singular value problem solvers in both real and complex arithmetic (single and double); * Generalized Hermitian-definite eigenproblem solvers; * Mixed-precision iterative refinement solvers based on LU, QR, and Cholesky in both real and complex arithmetic; * MAGMA BLAS in real arithmetic (single and double), including gemm, gemv, symv, and trsm. <note> MAGMA is like BLAS/LAPACK for GPU or CPU + GPU</note> ====== Version installée ====== * magma/cuda/1.5.1 (use module avail magma) <note important>Cette bibliothèque dépend de MKL (blas/lapack) et de CUDA bien sûr </note> ====== Utilisation ====== **Exemple : ** Matrix Multiplication using MAGMA (subroutine : **''DGEMM''** ) <code c> ... ... magma_dsetmatrix( Am, An, h_A, lda, d_A, ldda ); magma_dsetmatrix( Bm, Bn, h_B, ldb, d_B, lddb ); magma_dsetmatrix( M, N, h_C, ldc, d_C, lddc ); start = get_current_time(); magmablas_dgemm( transA, transB, M, N, K, alpha, d_A, ldda, d_B, lddb, beta, d_C, lddc ); end = get_current_time(); magma_perf = flops / GetTimerValue(start, end); magma_dgetmatrix( M, N, d_C, lddc, h_C2, ldc ); ... ... </code> ===== Compilation ===== <note warning> Pour compiler un programme utilisant MAGMA **vous devez** vous connecter aux machines ''tesla'' </note> Exemple : <code> qlogin -q tesla.q -l k20 </code> Charger le module ''magma'' : <code> module load magma </code> Adapter le ''Makefile'' suivant selon vos besoins : <code c> include ${MAGMA_HOME}/make.inc # change $(CC) to $(FORT) to use fortran compiler #------------------------------------------------ ### You only need to set your program source file dgmem: $(CC) dgemm.cpp -o dgmem $(OPTS) $(INC) $(LIBDIR) $(LDLIBS) </code> ===== Liens ===== * Des exemples se trouvent dans $MAGMA_DIR/testing * http://icl.cs.utk.edu/magma/index.html magma.txt Dernière modification : 2014/10/02 11:05de admin