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

library reorganisation

parent d7a328f0
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
#include <assert.h> #include <assert.h>
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#ifdef MKL
#include<mkl_cblas.h>
#endif
typedef struct { /* complex number */ typedef struct { /* complex number */
float r,i; float r,i;
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
# the current directory (in vi ":r!pwd") # the current directory (in vi ":r!pwd")
ROOT=/Users/jan/src/OpenSource 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 # 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 ...@@ -87,18 +93,16 @@ BLAS = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${M
#AMD ACML 4.4.0 #AMD ACML 4.4.0
#AMDROOT = /home/thorbcke/amdsdk/v1.0/acml/open64_64 #AMDROOT = /home/thorbcke/amdsdk/v1.0/acml/open64_64
#OPTC += -DACML440 -I$(AMDROOT)/include #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 #Intel MKL
MKLROOT=/opt/intel/mkl/ MKLROOT=/opt/intel/mkl/
OPTC += -DMKL -I$(MKLROOT)/include 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 FFT = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${MKLROOT}/lib/libmkl_core.a -lpthread -lm -ldl
############################################################################# #LIBARIES
# Some convenient abbreviations LIBS= -L$L -lgenfft $(FFT) $(BLAS)
B = $(ROOT)/bin
I = $(ROOT)/include
L = $(ROOT)/lib
######################################################################## ########################################################################
# standard CFLAGS # standard CFLAGS
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
include ../Make_include include ../Make_include
ALLINC = -I. ALLINC = -I.
LIBS += -L$L -lgenfft -lm #LIBS += -L$L -lgenfft -lm
#OPTC += -g -O0 -m64 #OPTC += -g -O0 -m64
#OPTC = -g -O0 -fno-omit-frame-pointer #OPTC = -g -O0 -fno-omit-frame-pointer
......
...@@ -5,8 +5,7 @@ include ../Make_include ...@@ -5,8 +5,7 @@ include ../Make_include
######################################################################## ########################################################################
# define general include and system library # define general include and system library
ALLINC = -I. 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 -fopenmp #OPTC = -g -Wall -fsignaling-nans -O0 -fopenmp
#OPTC += -fopenmp -Waddress #OPTC += -fopenmp -Waddress
#OPTC := $(subst -O3 -ffast-math, -O1 -g ,$(OPTC)) #OPTC := $(subst -O3 -ffast-math, -O1 -g ,$(OPTC))
......
...@@ -5,7 +5,7 @@ include ../Make_include ...@@ -5,7 +5,7 @@ include ../Make_include
######################################################################## ########################################################################
# define general include and system library # define general include and system library
ALLINC = -I. ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM) #LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc #LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0 #OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress #OPTC += -fopenmp -Waddress
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
include ../Make_include include ../Make_include
LIBS += -L$L -lgenfft -lm $(LIBSM) #LIBS += -L$L -lgenfft -lm $(LIBSM)
#OPTC += -g -O0 -Wall #OPTC += -g -O0 -Wall
#ALL: fmute marchenko marchenko2 #ALL: fmute marchenko marchenko2
......
...@@ -5,7 +5,7 @@ include ../Make_include ...@@ -5,7 +5,7 @@ include ../Make_include
######################################################################## ########################################################################
# define general include and system library # define general include and system library
ALLINC = -I. ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM) #LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc #LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0 #OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress #OPTC += -fopenmp -Waddress
......
...@@ -5,7 +5,7 @@ include ../Make_include ...@@ -5,7 +5,7 @@ include ../Make_include
######################################################################## ########################################################################
# define general include and system library # define general include and system library
ALLINC = -I. ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM) #LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc #LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0 #OPTC = -g -Wall -fsignaling-nans -O0
#OPTC += -fopenmp -Waddress #OPTC += -fopenmp -Waddress
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
include ../Make_include include ../Make_include
LIBS += -L$L -lgenfft -lm $(LIBSM) #LIBS += -L$L -lgenfft -lm $(LIBSM)
#OPTC += -openmp #OPTC += -openmp
#OPTC += -g -O0 #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