<commit_before>CC = mpicc
MPI_COMPILE_FLAGS = -O2
MPI_LINK_FLAGS = -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm
LIBRARY_PATH = /u1/local/intel/mkl/lib/intel64
INCLUDE_PATH = /u1/local/intel/mkl/include
DEPS = control.h
OBJ = Problem.o Solver.o IO.o

%.o: %.c $(DEPS)
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_COMPILE_FLAGS) -c -o $@ $<

IO: IO.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ IO.o

control_main: $(OBJ) control_main.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) control_main.o

control_test: $(OBJ) control_test.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) control_test.o

control_main_full: $(OBJ) control_main_full.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) control_main_full.o


dd_main: $(OBJ) dd_main.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) dd_main.o

dd_main_full: $(OBJ) dd_main_full.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) dd_main_full.o


read_parallel: read_parallel.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ read_parallel.o

dd_gmres: $(OBJ) dd_gmres.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) dd_gmres.o

dd_gmres_full: $(OBJ) dd_gmres_full.o
	$(CC) -Wl,--no-as-needed -L$(LIBRARY_PATH) -I$(INCLUDE_PATH) $(MPI_LINK_FLAGS) -o $@ $(OBJ) dd_gmres_full.o<commit_msg>rewrite and shorten Makefile. Note: includes libdat.so cludge<commit_after>CC = mpicc
MPI_COMPILE_FLAGS = -O2 -Wl,--no-as-needed
MPI_LINK_FLAGS = -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm
LIBRARY_PATHS = -L/u1/local/intel/mkl/lib/intel64 -L../lib
INCLUDE_PATHS = -I/u1/local/intel/mkl/include
DEPS = control.h
OBJ = Problem.o Solver.o IO.o
TARG = control_test control_main control_main_full \
       						  dd_main      dd_main_full      \
										dd_gmres     dd_gmres_full   read_parallel

all: $(TARG)

%.o: %.c $(DEPS)
	$(CC) $(LIBRARY_PATHS) $(INCLUDE_PATHS) $(MPI_COMPILE_FLAGS) -c -o $@ $<

$(TARG): % : %.o $(OBJ)
	$(CC) -Wl,--no-as-needed $(LIBRARY_PATHS) $(INCLUDE_PATHS) $(MPI_LINK_FLAGS) -o $@ $(OBJ) $<

.PHONY : clean
clean:
	-rm *.o $(TARG)
{'fraction_non_alphanumeric': 0.19376299376299377, 'fraction_numerical': 0.0058212058212058215, 'mean_word_length': 4.163090128755365, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1245627', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1063, 'n_words': 189}