<commit_before>default: release_debug

.PHONY: default release debug all clean test debug_test release_debug_test release_test
.PHONY: valgrind_test tag version

include make-utils/flags-gpu.mk
include make-utils/cpp-utils.mk

# Use compute capabilities 3.0
CXX_FLAGS += -m64 -arch=sm_30

# NVCC optimizations
RELEASE_FLAGS += --use_fast_math
RELEASE_DEBUG_FLAGS += --use_fast_math

# Relocatable shared library
CXX_FLAGS += -Xcompiler -fPIC

# Be stricter
CXX_FLAGS += -Xcompiler -Werror -Xcompiler -Winvalid-pch -Xcompiler -Wno-uninitialized

# Add includes
CXX_FLAGS += -Ilib/include

# Support for extra flags
CXX_FLAGS += $(EXTRA_CXX_FLAGS)

# Support for CUDA
CXX_FLAGS += $(shell pkg-config --cflags cuda)
LD_FLAGS += $(shell pkg-config --libs cuda)

# Compile folders
$(eval $(call folder_compile_gpu,src))
$(eval $(call folder_compile_gpu,test/src, -ICatch/include -Itest/include))

# Collect files for the test executable
CPP_TEST_FILES=$(wildcard test/src/*.cpp)
CPP_SRC_FILES=$(wildcard src/*.cu)

TEST_FILES=$(CPP_TEST_FILES) ${CPP_SRC_FILES}

# Create executables
$(eval $(call add_executable,egblas_test,$(TEST_FILES)))
$(eval $(call add_executable_set,egblas_test,egblas_test))

# Create the shared library
$(eval $(call add_shared_library,libegblas,$(CPP_SRC_FILES)))

release: release/lib/libegblas.so
release_debug: release_debug/lib/libegblas.so
debug: debug/lib/libegblas.so

all: release release_debug debug

debug_test: debug_egblas_test
	./debug/bin/egblas_test

release_debug_test: release_debug_egblas_test
	./release_debug/bin/egblas_test

release_test: release_egblas_test
	./release/bin/egblas_test

test: release/bin/egblas_test release_debug/bin/egblas_test debug/bin/egblas_test
	./debug/bin/egblas_test
	./release_debug/bin/egblas_test
	./release/bin/egblas_test

debug_install: debug/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 debug/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

release_debug_install: release_debug/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 release_debug/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

release_install: release/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 release/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

install: release_debug_install

valgrind_test: debug
	valgrind --leak-check=full ./debug/bin/egblas_test

clean: base_clean
	rm -rf reports
	rm -rf latex/ html/

version:
	@echo `git rev-parse HEAD`

tag:
	@echo `git rev-list HEAD --count`-`git rev-parse HEAD`

include make-utils/cpp-utils-finalize.mk
<commit_msg>Disable one warning for Thrust...<commit_after>default: release_debug

.PHONY: default release debug all clean test debug_test release_debug_test release_test
.PHONY: valgrind_test tag version

include make-utils/flags-gpu.mk
include make-utils/cpp-utils.mk

# Use compute capabilities 3.0
CXX_FLAGS += -m64 -arch=sm_30

# NVCC optimizations
RELEASE_FLAGS += --use_fast_math
RELEASE_DEBUG_FLAGS += --use_fast_math

# Relocatable shared library
CXX_FLAGS += -Xcompiler -fPIC

# Be stricter
CXX_FLAGS += -Xcompiler -Werror -Xcompiler -Winvalid-pch -Xcompiler -Wno-uninitialized -Xcompiler -Wno-unused-parameter

# Add includes
CXX_FLAGS += -Ilib/include

# Support for extra flags
CXX_FLAGS += $(EXTRA_CXX_FLAGS)

# Support for CUDA
CXX_FLAGS += $(shell pkg-config --cflags cuda)
LD_FLAGS += $(shell pkg-config --libs cuda)

# Compile folders
$(eval $(call folder_compile_gpu,src))
$(eval $(call folder_compile_gpu,test/src, -ICatch/include -Itest/include))

# Collect files for the test executable
CPP_TEST_FILES=$(wildcard test/src/*.cpp)
CPP_SRC_FILES=$(wildcard src/*.cu)

TEST_FILES=$(CPP_TEST_FILES) ${CPP_SRC_FILES}

# Create executables
$(eval $(call add_executable,egblas_test,$(TEST_FILES)))
$(eval $(call add_executable_set,egblas_test,egblas_test))

# Create the shared library
$(eval $(call add_shared_library,libegblas,$(CPP_SRC_FILES)))

release: release/lib/libegblas.so
release_debug: release_debug/lib/libegblas.so
debug: debug/lib/libegblas.so

all: release release_debug debug

debug_test: debug_egblas_test
	./debug/bin/egblas_test

release_debug_test: release_debug_egblas_test
	./release_debug/bin/egblas_test

release_test: release_egblas_test
	./release/bin/egblas_test

test: release/bin/egblas_test release_debug/bin/egblas_test debug/bin/egblas_test
	./debug/bin/egblas_test
	./release_debug/bin/egblas_test
	./release/bin/egblas_test

debug_install: debug/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 debug/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

release_debug_install: release_debug/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 release_debug/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

release_install: release/lib/libegblas.so
	cp -r include/* $(DESTDIR)/usr/include/
	install -m 0644 release/lib/libegblas.so $(DESTDIR)/usr/lib/
	install -m 0644 -D egblas.pc $(DESTDIR)/usr/lib/pkgconfig/

install: release_debug_install

valgrind_test: debug
	valgrind --leak-check=full ./debug/bin/egblas_test

clean: base_clean
	rm -rf reports
	rm -rf latex/ html/

version:
	@echo `git rev-parse HEAD`

tag:
	@echo `git rev-list HEAD --count`-`git rev-parse HEAD`

include make-utils/cpp-utils-finalize.mk

{'fraction_non_alphanumeric': 0.12190716994762507, 'fraction_numerical': 0.010836192884233339, 'mean_word_length': 4.967672413793103, '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': '6548768', 'n_tokens_mistral': 2157, 'n_tokens_neox': 2059, 'n_words': 438}