<commit_before>###############################################################
#
#  Build and install the SASSI libraries.
#
###############################################################

# Setup your variables in env.mk before building!
include ../env.mk

# These libraries work with Fermi, the others do not.
export FERMI_LIBS := libophist_fermi.a libstubs.a

export PATH := $(CCBIN):$(PATH)

# Decide which libraries you want to compile.
export LIBS := 	libbranch.a \
		libctamemranges.a \
		libmemdiverge.a \
		libopcode.a \
		libophist.a \
		libvalueprof.a

ifndef INSTALL_DIR
	INSTALL_DIR := ../
endif

NVCC = $(CUDA_HOME)/bin/nvcc
CUPTI = $(CUDA_HOME)/extras/CUPTI

INSTALLED_LIBS := $(addprefix $(INSTALL_DIR)/lib/, $(LIBS))
INSTALLED_FERMI_LIBS := $(addprefix $(INSTALL_DIR)/lib/, $(FERMI_LIBS))

install: $(INSTALLED_LIBS) $(INSTALLED_FERMI_LIBS)

install-fermi-only: $(INSTALLED_FERMI_LIBS)

$(INSTALL_DIR)/lib/lib%.a: %.o
	ar r $@ $^
	ranlib $@

%.o: %.cu
	$(NVCC) -ccbin $(CCBIN) -std=c++11 \
		--compiler-options -Wall   \
		$(DEBUG)                   \
		-O3 $(GENCODE)             \
	        -lineinfo -c -rdc=true -o $@ $^   \
		--maxrregcount=16          \
		--compiler-options -Wall   \
		-I$(SASSI_HOME)/include    \
		-I$(CUPTI)/include/        \
		-I$(INSTALL_DIR)/utils/    \
		-I$(INSTALL_DIR)/include

clean:
	$(RM) *.o *.a *~ 
	$(RM) $(INSTALLED_LIBS)
<commit_msg>Added the CFG example to the Makefile.<commit_after>###############################################################
#
#  Build and install the SASSI libraries.
#
###############################################################

# Setup your variables in env.mk before building!
include ../env.mk

# These libraries work with Fermi, the others do not.
export FERMI_LIBS := libophist_fermi.a libstubs.a

export PATH := $(CCBIN):$(PATH)

# Decide which libraries you want to compile.
export LIBS := 	libbranch.a \
		libcfg.a \
		libmemdiverge.a \
		libopcode.a \
		libophist.a \
		libvalueprof.a

ifndef INSTALL_DIR
	INSTALL_DIR := ../
endif

NVCC = $(CUDA_HOME)/bin/nvcc
CUPTI = $(CUDA_HOME)/extras/CUPTI

INSTALLED_LIBS := $(addprefix $(INSTALL_DIR)/lib/, $(LIBS))
INSTALLED_FERMI_LIBS := $(addprefix $(INSTALL_DIR)/lib/, $(FERMI_LIBS))

install: $(INSTALLED_LIBS) $(INSTALLED_FERMI_LIBS)

install-fermi-only: $(INSTALLED_FERMI_LIBS)

$(INSTALL_DIR)/lib/lib%.a: %.o
	ar r $@ $^
	ranlib $@

%.o: %.cu
	$(NVCC) -ccbin $(CCBIN) -std=c++11 \
		--compiler-options -Wall   \
		$(DEBUG)                   \
		-O3 $(GENCODE)             \
	        -lineinfo -c -rdc=true -o $@ $^   \
		--maxrregcount=16          \
		--compiler-options -Wall   \
		-I$(SASSI_HOME)/include    \
		-I$(CUPTI)/include/        \
		-I$(INSTALL_DIR)/utils/    \
		-I$(INSTALL_DIR)/include

clean:
	$(RM) *.o *.a *~ 
	$(RM) $(INSTALLED_LIBS)

{'fraction_non_alphanumeric': 0.24035714285714285, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 3.155786350148368, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3788217', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1018, 'n_words': 208}