10월, 2017의 게시물 표시

Making Lapack Library using Bash

1. download lapack from netlib $ wget http://www.netlib.org/lapack/lapack.tgz 2. unzip lapack.tgz $ tar zxvf lapack-3.7.1.tgz 3. preparation - gfortran $ cp make.inc.example make.inc -ifort $ cp ./INSTALL/make.inc.ifort make.inc 4. make libraries $ make blaslib $ make lapacklib 5. out put librefblas.a liblapack.a -  http://www.netlib.org/lapack/lug/node14.html -  https://www.youtube.com/watch?v=5N1QYWxAAL4

Run bash script on command line interface

Give execute permission to your script: chmod + x / path / to / yourscript . sh And to run your script: / path / to / yourscript . sh Since  .  refers to the current directory: if  yourscript.sh  is in the current directory, you can simplify this to: ./ yourscript . sh

Using Intel Fortran Compiler from the Command Line

Using the Compiler and Linker from the Command Line The  ifort  command is used to compile and link your programs from the command line. You can either compile and link your projects in one step with the  ifort  command, or compile them with  ifort  and then link them as a separate step. In most cases, you will use a single  ifort  command to invoke the compiler and linker. You can use the  ifort   command in either of two windows:  Your own terminal window, in which you have set the appropriate environment variables by executing the file called  ifortvars.sh  or  ifortvars.csh  (Linux* and Mac OS* X) or ifortvars.ba t  (Windows*). This file sets the environment variables such as PATH. By default,  ifortvars  file is installed in the  \bin  directory for your compiler. For more information, see  Using the ifortvars File to Specify Location of Components . On Windows s...

LAPACK for Windows

이미지
LAPACK for Windows What do you need? Prebuilt libraries Running LAPACK under Windows Running LAPACKE from VS Studio (just C code, no Fortran!!!) Easy Windows Build What do you need? To run LAPACK on Windows? If you have INTEL compilers installed on your machine, please download the Prebuilt static libraries using INTEL Compilers libraries If you DO NOT have INTEL compilers installed on your machine, you will need to install MinGW 32 bits or MinGW-w64 and then download the Prebuilt dynamic libraries using Mingw Call LAPACK directly from C using the LAPACKE C Interface. You will need to install MinGW 32 bits and then download the Prebuilt dynamic libraries using Mingw or even better download a VS Studio Solution with everything ready (BLAS, LAPACK and LAPACKE lib and dll) and two simple LAPACKE examples), you will just need to unzip and build. Do not forget to consult also the LAPACKE User Guide . To run a program calling a LAPACK routine under W...