<commit_before>CC = mpic++
NETCDF_DIR = /Users/rmcgibbo/anaconda/pkgs/libnetcdf-4.2.1.1-1
OPENMM_LINKS = -L$(OPENMM_LIB_PATH) -lOpenMM -lOpenMMSerialization
NETCDF_LINKS = -L$(NETCDF_DIR)/lib -lnetcdf 

run: accelerator system.xml integrator.xml state.xml config.ini
	mpirun -np 2 ./accelerator system.xml integrator.xml state.xml config.ini

accelerator: build/mainloop.o build/inireader.o build/ini.o build/netcdfwriter.o
	$(CC) -o accelerator build/mainloop.o build/inireader.o build/ini.o $(OPENMM_LINKS) $(NETCDF_LINKS)

build/mainloop.o: src/mainloop.cpp
	$(CC) -o $@ -c $< -Iinclude -I$(OPENMM_INCLUDE_PATH) -Iinclude

build/ini.o: src/ini.c
	$(CC) -o $@ -c $< -Iinclude

build/inireader.o: src/INIReader.cpp
	$(CC) -o $@ -c $< -Iinclude

build/netcdfwriter.o: src/netcdfwriter.cpp
	$(CC) -o $@ -c $< -Iinclude -I$(NETCDF_DIR)/include

clean:
	rm build/* accelerator<commit_msg>force<commit_after>CC = mpic++
NETCDF_DIR = /Users/rmcgibbo/anaconda/pkgs/libnetcdf-4.2.1.1-1
OPENMM_LINKS = -L$(OPENMM_LIB_PATH) -lOpenMM -lOpenMMSerialization
NETCDF_LINKS = -L$(NETCDF_DIR)/lib -lnetcdf 

run: accelerator system.xml integrator.xml state.xml config.ini
	mpirun -np 2 ./accelerator system.xml integrator.xml state.xml config.ini

accelerator: build/mainloop.o build/inireader.o build/ini.o build/netcdfwriter.o
	$(CC) -o accelerator build/mainloop.o build/inireader.o build/ini.o $(OPENMM_LINKS) $(NETCDF_LINKS)

build/mainloop.o: src/mainloop.cpp
	$(CC) -o $@ -c $< -Iinclude -I$(OPENMM_INCLUDE_PATH) -Iinclude

build/ini.o: src/ini.c
	$(CC) -o $@ -c $< -Iinclude

build/inireader.o: src/INIReader.cpp
	$(CC) -o $@ -c $< -Iinclude

build/netcdfwriter.o: src/netcdfwriter.cpp
	$(CC) -o $@ -c $< -Iinclude -I$(NETCDF_DIR)/include

clean:
	rm -f build/* accelerator
{'fraction_non_alphanumeric': 0.1603399433427762, 'fraction_numerical': 0.006798866855524079, 'mean_word_length': 4.14868804664723, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 2, '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': '3880793', 'n_tokens_mistral': 771, 'n_tokens_neox': 742, 'n_words': 138}