Skip to content
Snippets Groups Projects
Commit 2a5f73b0 authored by Martin's avatar Martin
Browse files

makefile a jour

parent 575cd966
Branches
No related tags found
No related merge requests found
......@@ -4,6 +4,14 @@ ACCFLAGS = -acc=gpu -gpu=cc75
OPTFLAGS = -fast
INFOFLAGS = -Minfo=accel
RM = rm -r -f
G = g++
OPEN = -fopenmp
MAIN = main.cpp
EXEC = main
CLEAN = $(EXEC)
acc: openacc.cpp
nvc++ -o openacc $(ACCFLAGS) $(OPTFLAGS) $(INFOFLAGS) openacc.cpp -Mneginfo
......@@ -32,7 +40,13 @@ cuda: cuda.cu
nvcc -O3 -m64 --std c++11 --gpu-architecture=sm_75 cuda.cu -o cuda
clean:
rm *~
$(RM) $(CLEAN)
rexe:
rm -r -f *.exe
$(RM) *.exe
gopen:
$(G) $(OPEN) $(MAIN) -o $(EXEC)
exec:
./$(EXEC)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment