Goto-library

From Vd

Jump to: navigation, search

The BLAS (and parts of the LAPACK library) is installed at /site/Goto-library/AuthenticAMD-x86_64/. The following compilers are supported in the current build of the Goto library :

  • g77
  • gfortran4
  • ifort
  • pathscale
  • pgi

Unfortunately there is change of routines in the version of gfortran version 4 currently installed and the Goto library. This can be resolved by some extra routines. We strongly advice to use one of the other compilers when developing using the Goto library.

The library routines is located at /site/Goto-library/AuthenticAMD-x86_64/<compiler>/libgoto.a


Documentation can be found at Goto-library FAQ. Unfortunately there is no manual prepared for this software. However, the source code is available for Academic institutions.


How to use

g77 -o dgemm-test.x -L/site/Goto-library/AuthenticAMD-x86_64/g77/   dgemm-test.f -lgoto

     program dgemmtest
C
     parameter(N=100)
C
     double precision a, b , c, alpha, beta
     dimension a(N,N),  b(N,N), c(N,N)
     integer i,j
C     
C     Init matrices
C
     do i=1,N
        do j=1,N
           a(j,i)=rand(0)
           b(j,i)=rand(0)
        enddo 
     enddo
C
     write(*,*) a(1,1),a(N,N), b(1,1),b(N,N)
     alpha = 1.0
     beta = 1.0
C
     call dgemm('n', 'n', N, N, N, alpha, a, N, b, N, beta, c, N)
C
     write(*,*) c(1,1), c(N,N)
C
     end
Views
Personal tools