Commit 2170ff74 authored by Joseph Pallamidessi's avatar Joseph Pallamidessi

Add openMP support in all templates

parent 987f981a
......@@ -456,11 +456,11 @@ endif
EASEALIB_PATH=$(EZ_PATH)libeasea/
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
CXXFLAGS = -fopenmp -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
OBJS = EASEA.o EASEAIndividual.o
LIBS = -lpthread
LIBS = -lpthread -fopenmp
ifneq ("$(OS)","")
LIBS += -lws2_32 -lwinmm -L"C:\MinGW\lib"
endif
......
......@@ -625,10 +625,10 @@ BIN= EASEA
all:$(BIN)
$(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
$(NVCC) $^ -o $@ $(LDFLAGS) -Xcompiler -fopenmp
%.o:%.cu
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -Wall
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -fopenmp
easeaclean: clean
rm -f Makefile EASEA.prm $(SRC) $(HDR) EASEA.mak $(CUDA_SRC) *.linkinfo EASEA.png EASEA.dat EASEA.vcproj EASEA.plot EASEA.r EASEA.csv
......
......@@ -828,10 +828,10 @@ BIN= EASEA
all:$(BIN)
$(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
$(NVCC) $^ -o $@ $(LDFLAGS) -Xcompiler -fopenmp
%.o:%.cu
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -Wall
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -fopenmp
easeaclean: clean
rm -f Makefile EASEA.prm $(SRC) $(HDR) EASEA.mak $(CUDA_SRC) *.linkinfo EASEA.png EASEA.dat EASEA.vcproj EASEA.plot EASEA.r EASEA.csv EASEA.pop
......
......@@ -1106,10 +1106,10 @@ BIN= EASEA
all:$(BIN)
$(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
$(NVCC) $^ -o $@ $(LDFLAGS) -Xcompiler -fopenmp
%.o:%.cu
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -Wall
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -fopenmp
easeaclean: clean
rm -f Makefile EASEA.prm $(SRC) $(HDR) EASEA.mak $(CUDA_SRC) *.linkinfo EASEA.png EASEA.dat EASEA.vcproj EASEA.plot EASEA.r EASEA.csv EASEA.pop
......
......@@ -786,10 +786,10 @@ BIN= EASEA
all:$(BIN)
$(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
$(NVCC) $^ -o $@ $(LDFLAGS) -Xcompiler -fopenmp
%.o:%.cu
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -Wall
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -fopenmp
easeaclean: clean
rm -f Makefile EASEA.prm $(SRC) $(HDR) EASEA.mak $(CUDA_SRC) *.linkinfo EASEA.png EASEA.dat EASEA.vcproj EASEA.plot EASEA.r EASEA.csv EASEA.pop
......
......@@ -2125,10 +2125,10 @@ BIN= EASEA
all:$(BIN)
$(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
$(NVCC) $^ -o $@ $(LDFLAGS) -Xcompiler -fopenmp
%.o:%.cu
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -Wall
$(NVCC) $(NVCCFLAGS) -o $@ $< -c -DTIMING $(CPPFLAGS) -g -Xcompiler -fopenmp
easeaclean: clean
rm -f Makefile EASEA.prm $(SRC) $(HDR) EASEA.mak $(CUDA_SRC)
......
......@@ -619,11 +619,11 @@ endif
EASEALIB_PATH=$(EZ_PATH)/libeasea/
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
CXXFLAGS = -fopenmp -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
OBJS = EASEA.o EASEAIndividual.o
LIBS = -lpthread
LIBS = -lpthread -fopenmp
ifneq ("$(OS)","")
LIBS += -lws2_32 -lwinmm -L"C:\MinGW\lib"
endif
......
......@@ -451,11 +451,11 @@ endif
EASEALIB_PATH=$(EZ_PATH)/libeasea/
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
CXXFLAGS = -fopenmp -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
OBJS = EASEA.o EASEAIndividual.o
LIBS = -lpthread
LIBS = -lpthread -fopenmp
ifneq ("$(OS)","")
LIBS += -lws2_32 -lwinmm -L"C:\MinGW\lib"
endif
......
......@@ -487,11 +487,11 @@ endif
EASEALIB_PATH=$(EZ_PATH)libeasea/
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
CXXFLAGS = -fopenmp -O2 -g -Wall -fmessage-length=0 -I$(EASEALIB_PATH)include -I$(EZ_PATH)boost
OBJS = EASEA.o EASEAIndividual.o
LIBS = -lpthread
LIBS = -lpthread -fopenmp
ifneq ("$(OS)","")
LIBS += -lw2_32 -lwinmm -L"C:\MinGW\lib"
endif
......
......@@ -1678,8 +1678,8 @@ std::string setVariable(const std::string optionName, std::string defaultValue);
NVCC= nvcc
CPPC= g++
CXXFLAGS+=-g -Wall
LDFLAGS=-lboost_program_options -lboost_serialization
CXXFLAGS+=-g -Wall -fopenmp
LDFLAGS=-lboost_program_options -lboost_serialization -fopenmp
#USER MAKEFILE OPTIONS :
\INSERT_MAKEFILE_OPTION#END OF USER MAKEFILE OPTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment