Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Introduction

Usage

 

 

 

Installation

cd /sw/library/blas/CBLAS
make
It will produce static library "blas_LINUX.a" in /sw/library/blas/CBLAS/lib


Shared Libraries

cd /sw/library/blas/CBLASshared
wget http://www.netlib.org/blas/blast-forum/cblas.tgz
tar xzvf cblas.tgz
cd CBLAS
>>>>>>>>>>>>>>>
Replace the corresponding variables in "Makefile.in" with:

BLLIB = /path_to_compiled_BLAS/blas_LINUX.a
CBLIB = ../lib/cblas_$(PLAT).so
CFLAGS = -O3 -DADD_ -fPIC
FFLAGS = -O3 -fPIC
ARCH = gcc
ARCHFLAGS = -shared -o

>>>>>>>>>>>>>>>>

make 2>&1 |tee makelog.txt
It will produce shared library "cblas_LINUX.so"

 

Reference

 

  1. http://avulanov.blogspot.com.au/2015/03/cblas-compilation-as-shared-library.html
  • No labels