Commit fd5bb81b authored by Nikos Nikoloutsakos's avatar Nikos Nikoloutsakos
Browse files

Add Makefile

parent aab64452
......@@ -62,6 +62,16 @@ Sample data example demonstrating the use of pddp-2means clustering in a small d
# 10. Instructions on how to compile the code
Use the Makefile included in the src/ directory.
Enable compilation on targets without Xeon Phi device
select offload compilation enable/disable
icc -offload
icc -no-offload
# 11. Instructions on how to run the code
./pddp_2means <input_file> <output_file> <clusters>
CC := icc
#CFLAGS := -offload -O3 -openmp
CFLAGS := -no-offload -O3 -openmp
OBJS := pddp_2means.o
APP := pddp_2means
all: $(APP)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(APP): $(OBJS)
$(CC) $(CFLAGS) -o $@ $<
rm -f $(OBJS) $(APP) *.optrpt
Supports Markdown
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