<commit_before>
DOXYGEN ?= doxygen
CXXFLAGS ?= -O3 -Wall -Wconversion -Wextra -Wshadow -g -fmessage-length=80

CXX11 ?= 1

CUDA_DIR ?= /usr/local/cuda
CUDA_INC_DIR ?= $(CUDA_DIR)/include

CXXFLAGS += -pthread

ifeq ($(CXX11),1)
	CXXFLAGS += -std=c++11
endif

EMBED_BEGIN = -rdynamic -Wl,-b,binary,
EMBED_END   = ,-b,default

NVCC_EMBED_BEGIN = -rdynamic -Wl\,-b\,binary\,
NVCC_EMBED_END   = \,-b\,default

EMBED =
NVCC_EMBED =
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
	# Embed a header into the executable (only supported by gcc on Linux)
	EMBED = $(EMBED_BEGIN)example_headers/my_header2.cuh$(EMBED_END)
	NVCC_EMBED = $(NVCC_EMBED_BEGIN)example_headers/my_header2.cuh$(NVCC_EMBED_END)
	CXXFLAGS += -D LINUX
	CUDA_LIB_DIR = $(CUDA_DIR)/lib64
else ifeq ($(UNAME_S),Darwin)
	CUDA_LIB_DIR = $(CUDA_DIR)/lib
endif

INC += -I$(CUDA_INC_DIR)
LIB += -ldl -L$(CUDA_LIB_DIR) -lcuda -lcudart -lnvrtc

HEADERS = jitify.hpp \
          example_headers/my_header1.cuh.jit \
          example_headers/my_header2.cuh

all: jitify_example

JITIFY_EXAMPLE_DEFINES = -DCUDA_INC_DIR="\"$(CUDA_INC_DIR)\""

jitify_example: jitify_example.cpp $(HEADERS)
	$(CXX) -o $@ $< $(CXXFLAGS) $(INC) $(LIB) $(EMBED) $(JITIFY_EXAMPLE_DEFINES)

%.jit: % stringify
	./stringify $< > $@
<commit_msg>make all should build jitify_test<commit_after>
DOXYGEN ?= doxygen
CXXFLAGS ?= -O3 -Wall -Wconversion -Wextra -Wshadow -g -fmessage-length=80

CXX11 ?= 1

CUDA_DIR ?= /usr/local/cuda
CUDA_INC_DIR ?= $(CUDA_DIR)/include

CXXFLAGS += -pthread

ifeq ($(CXX11),1)
	CXXFLAGS += -std=c++11
endif

EMBED_BEGIN = -rdynamic -Wl,-b,binary,
EMBED_END   = ,-b,default

NVCC_EMBED_BEGIN = -rdynamic -Wl\,-b\,binary\,
NVCC_EMBED_END   = \,-b\,default

EMBED =
NVCC_EMBED =
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
	# Embed a header into the executable (only supported by gcc on Linux)
	EMBED = $(EMBED_BEGIN)example_headers/my_header2.cuh$(EMBED_END)
	NVCC_EMBED = $(NVCC_EMBED_BEGIN)example_headers/my_header2.cuh$(NVCC_EMBED_END)
	CXXFLAGS += -D LINUX
	CUDA_LIB_DIR = $(CUDA_DIR)/lib64
else ifeq ($(UNAME_S),Darwin)
	CUDA_LIB_DIR = $(CUDA_DIR)/lib
endif

INC += -I$(CUDA_INC_DIR)
LIB += -ldl -L$(CUDA_LIB_DIR) -lcuda -lcudart -lnvrtc

HEADERS = jitify.hpp \
          example_headers/my_header1.cuh.jit \
          example_headers/my_header2.cuh

all: jitify_example jitify_test

JITIFY_EXAMPLE_DEFINES = -DCUDA_INC_DIR="\"$(CUDA_INC_DIR)\""

jitify_example: jitify_example.cpp $(HEADERS)
	$(CXX) -o $@ $< $(CXXFLAGS) $(INC) $(LIB) $(EMBED) $(JITIFY_EXAMPLE_DEFINES)

%.jit: % stringify
	./stringify $< > $@

{'fraction_non_alphanumeric': 0.1563467492260062, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.476694915254237, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '991812', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1137, 'n_words': 201}