<commit_before>CXX = clang++
TOP = ..
TARGET = $(TOP)/bin/railgun
CXXFLAGS = -Werror
LIBS = -lcudart -lpthread
SRCS = $(wildcard *.cu)
BCS = $(SRCS:.cu=.bc)
DEPS:=$(SRCS:.cu=.d)

.PHONY: all clean

all: $(TARGET)

%.bc: %.cu
	$(CXX) $(CXXFLAGS) -emit-llvm -MMD -MP -c -O0 --cuda-path=/opt/cuda -o $@ $<

program.bc: $(BCS)
	llvm-link $(BCS) -o program.bc

program.o: program.bc
	llc -filetype=obj program.bc -o program.o

$(TARGET): program.o
	mkdir -p "$$(dirname $(TARGET))"
	$(CXX) $(CXXFLAGS) -L/opt/cuda/lib64 -o $(TARGET) program.o $(LIBS)

clean:
	$(RM) program.o program.bc
	$(RM) $(BCS) $(DEPS)
	$(RM) $(TARGET)

-include $(DEPS)<commit_msg>simplify src/README.md<commit_after>CXX = clang++
TOP = ..
TARGET = $(TOP)/bin/railgun
CXXFLAGS = -Werror
LIBS = -lcudart -lpthread

.PHONY: all clean

all: $(TARGET)

$(TARGET):
	mkdir -p "$$(dirname $(TARGET))"
	$(CXX) $(CXXFLAGS) --cuda-path=/opt/cuda -L/opt/cuda/lib64 -o $(TARGET) *.cu $(LIBS)

clean:
	$(RM) $(TARGET)
{'fraction_non_alphanumeric': 0.2343268242548818, 'fraction_numerical': 0.0051387461459403904, 'mean_word_length': 3.660287081339713, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2914967', 'n_tokens_mistral': 450, 'n_tokens_neox': 422, 'n_words': 100}