/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/Makefile.in

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-28 04:30:08 UTC
  • Revision ID: csa@dside.dyndns.org-20100428043008-vd9z0nso9axezvlp
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#BUILD_SPE      := 1
 
2
USE_MKL         := 1
 
3
BUILD_OCTAVE    := 1
 
4
#MAX_PPU        := 1
 
5
#MAX_SPU        := 1
 
6
 
 
7
ifdef BUILD_SPE
 
8
CELL_TOP        := /opt/cell/sdk
 
9
endif
 
10
 
 
11
INCLUDE         := -I./ext -I../ext
 
12
 
 
13
ifdef MAX_PPU
 
14
CFLAGS          += -DHW_MAX_PPU=$(MAX_PPU)
 
15
endif
 
16
 
 
17
ifdef MAX_SPU
 
18
CFLAGS          += -DHW_MAX_SPU=$(MAX_SPU)
 
19
endif
 
20
 
 
21
ifdef BUILD_SPE
 
22
# Both CELL/SDK lapack and blas libraries spawns ppe threads for execution, Lapack crashes besides than
 
23
LDFLAGS_MATH    := 
 
24
#IMPORTS_MATH   := -llapack -lblas -lm
 
25
# The IBM library is even slower for small matrices
 
26
#IMPORTS_MATH   := /fzk/ipe/localhome/chilinga/lib/lapack_LINUX.a -lblas -lm -lgfortran
 
27
IMPORTS_MATH    := /fzk/ipe/localhome/chilinga/lib/libgslcblas.a /fzk/ipe/localhome/chilinga/lib/lapack_LINUX.a /fzk/ipe/localhome/chilinga/lib/blas_LINUX.a -lm -lgfortran
 
28
#IMPORTS_MATH   := /fzk/ipe/localhome/chilinga/lib64/libgslcblas.so /fzk/ipe/localhome/chilinga/lib64/liblapack.a  /fzk/ipe/localhome/chilinga/lib64/libblas.so -lm -lgfortran
 
29
else
 
30
ifdef USE_MKL
 
31
#LDFLAGS_MATH   := -L/opt/intel/mkl/10.2.1.017/lib/em64t -L/usr/lib64/octave-3.0.2
 
32
LDFLAGS_MATH    := -L/opt/intel/mkl/10.2.1.017/lib/em64t
 
33
IMPORTS_MATH    := -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lm 
 
34
else
 
35
LDFLAGS_MATH    :=
 
36
IMPORTS_MATH    := -llapack -lcblas -lm
 
37
#LDFLAGS_MATH   := -L/usr/lib64/octave-3.0.2
 
38
#IMPORTS_MATH   := -llapack -lgslcblas -lm
 
39
endif
 
40
endif