1 / 9

Outline

Outline. Announcements Add/drop by Monday HWI coming on Friday Loading BLAS Loading LAPACK. BLAS. BLAS is available as raw code commercial packages (IMSL, Intel “Math Kernal Library”) ATLAS-- “Automatically-Tuned Linear Algebra Subroutines”. ATLAS.

hawa
Download Presentation

Outline

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Outline Announcements Add/drop by Monday HWI coming on Friday Loading BLAS Loading LAPACK

  2. BLAS BLAS is available as raw code commercial packages (IMSL, Intel “Math Kernal Library”) ATLAS-- “Automatically-Tuned Linear Algebra Subroutines”

  3. ATLAS Code to build an optimized version of BLAS (hopefully faster than just compiling BLAS) Available as code or pre-builts from Netlib atlas3.2.0_Linux_PIIISSE1256.tgz “Pentium III with 256K L2 cache, using SSE1 for single precision”

  4. LAPACK LAPACK is also available as raw code commercial packages

  5. LAPACK Download lapack.tgz from Netlib edit make.inc for this platform compiler =g77, options=-g -O2 BLASLIB = -L$(HOME)/cs404/ATLASLinux_PIIISSE1256 -lf77blas -latlas edit Makefile comment out blaslib dependency

  6. LAPACK make compiles LAPACK code creates libraries Followed install instructions to merge LAPACK with the LAPACK routines from ATLAS

  7. UNIX Libraries Pre-built libraries (commercial or otherwise) are stored as “archives” on UNIX machines lib<NAME>.a System libraries are in directories like /lib and /usr/lib archives are actually collections of object code (.o)

  8. Build process: compile--creates machine instructions (object code) g77 -c foo.c ----> foo.o link--merges object code to create executable g77 foo.o bar.o -ofoobar----> combines instructions in foo.o and bar.o as well as system libraries to create foobar Review of Building

  9. 1) Compile the code you have (use -c) 2) Link your code together and link to the libraries you need g77 <YOUR OBJECTS> -L<LIBPATH> -lname -L sets directory where linker will look for libraries -lname links to libname.a in LIBPATH or system libraries Building with libraries

More Related