Skip to content
Snippets Groups Projects
Commit 05dfa2d5 authored by Jan Thorbecke's avatar Jan Thorbecke
Browse files

library reorganisation

parent 33d2ba30
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@
#include <assert.h>
#include <math.h>
#include <string.h>
#ifdef MKL
#include<mkl_cblas.h>
#endif
typedef struct { /* complex number */
float r,i;
......
......@@ -8,6 +8,12 @@
# the current directory (in vi ":r!pwd")
ROOT=/Users/jan/src/OpenSource
#############################################################################
# Some convenient abbreviations
B = $(ROOT)/bin
I = $(ROOT)/include
L = $(ROOT)/lib
########################################################################
# C compiler; change this only if you are using a different C-compiler
......@@ -87,18 +93,16 @@ BLAS = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${M
#AMD ACML 4.4.0
#AMDROOT = /home/thorbcke/amdsdk/v1.0/acml/open64_64
#OPTC += -DACML440 -I$(AMDROOT)/include
#LIBSM = -L$(AMDROOT)/lib -lacml -lfortran -lffio -lrt -lm
#BLAS = -L$(AMDROOT)/lib -lacml -lfortran -lffio -lrt -lm
#Intel MKL
MKLROOT=/opt/intel/mkl/
OPTC += -DMKL -I$(MKLROOT)/include
FFT = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${MKLROOT}/lib/libmkl_core.a -lpthread -lm -ldl
#############################################################################
# Some convenient abbreviations
#LIBARIES
LIBS= -L$L -lgenfft $(FFT) $(BLAS)
B = $(ROOT)/bin
I = $(ROOT)/include
L = $(ROOT)/lib
########################################################################
# standard CFLAGS
......
......@@ -3,7 +3,7 @@
include ../Make_include
ALLINC = -I.
LIBS += -L$L -lgenfft -lm
#LIBS += -L$L -lgenfft -lm
#OPTC += -g -O0 -m64
#OPTC = -g -O0 -fno-omit-frame-pointer
......
......@@ -5,8 +5,7 @@ include ../Make_include
########################################################################
# define general include and system library
ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#OPTC = -g -Wall -fsignaling-nans -O0 -fopenmp
#OPTC += -fopenmp -Waddress
#OPTC := $(subst -O3 -ffast-math, -O1 -g ,$(OPTC))
......
......@@ -5,7 +5,7 @@ include ../Make_include
########################################################################
# define general include and system library
ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress
......
......@@ -2,7 +2,7 @@
include ../Make_include
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#OPTC += -g -O0 -Wall
#ALL: fmute marchenko marchenko2
......
......@@ -5,7 +5,7 @@ include ../Make_include
########################################################################
# define general include and system library
ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress
......
......@@ -5,7 +5,7 @@ include ../Make_include
########################################################################
# define general include and system library
ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress
......
......@@ -2,7 +2,7 @@
include ../Make_include
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm $(LIBSM)
#OPTC += -openmp
#OPTC += -g -O0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment