<commit_before># Configuration
COMPILER     ?= ./bin/hipacc
COMPILER_INC ?= -std=c++11 -stdlib=libc++ \
                -I`@CLANG_EXECUTABLE@ -print-file-name=include` \
                -I`@LLVM_CONFIG_EXECUTABLE@ --includedir` \
                -I`@LLVM_CONFIG_EXECUTABLE@ --includedir`/c++/v1 \
                -I/usr/include \
                -I@DSL_INCLUDES@
TEST_CASE    ?= ./tests/opencv_blur_8uc1
MYFLAGS      ?= -DWIDTH=2048 -DHEIGHT=2048 -DSIZE_X=5 -DSIZE_Y=5
NVCC_FLAGS    = -gencode=arch=compute_$(GPU_ARCH),code=\"sm_$(GPU_ARCH),compute_$(GPU_ARCH)\" \
                -ftz=true -prec-sqrt=false -prec-div=false -Xptxas \
                -v #-keep
OFLAGS        = -O3

# OpenCL specific configuration
ifeq ($(HIPACC_TARGET),Midgard)
    OCL_CC    = @NDK_CXX_COMPILER@ @NDK_CXX_FLAGS@ @NDK_INCLUDE_DIRS_STR@ -std=c++0x -Wall -Wunused
    OCL_LINK  = -lm -ldl -lstdc++ @NDK_LINK_LIBRARIES_STR@ @EMBEDDED_OPENCL_LFLAGS@
    OCL_INC   = @EMBEDDED_OPENCL_CFLAGS@
else
    OCL_CC    = @CMAKE_CXX_COMPILER@ -std=c++0x -Wall -Wunused
    OCL_LINK  = -lm -ldl -lstdc++ -lpthread @TIME_LINK@ @OPENCL_LFLAGS@
    OCL_INC   = @OPENCL_CFLAGS@
endif

# Renderscript specific configuration
RS_TARGET_API = @RS_TARGET_API@
ifge = $(shell if [ $(1) -ge $(2) ]; then echo true; else echo false; fi)


# Source-to-source compiler configuration
# use local memory -> set HIPACC_LMEM to off|Linear1D|Linear2D|Array2D
# use texture memory -> set HIPACC_TEX to off|on
# vectorize code (experimental, doesn't work) -> set HIPACC_VEC to off|on
# pad images to a multiple of n bytes -> set HIPACC_PAD to n
# map n output pixels to one thread -> set HIPACC_PPT to n
# use specific configuration for kernels -> set HIPACC_CONFIG to nxm
# generate code that explores configuration -> set HIPACC_EXPLORE to off|on
# generate code that times kernel execution -> set HIPACC_TIMING to off|on
HIPACC_LMEM?=off
HIPACC_TEX?=off
HIPACC_VEC?=off
HIPACC_PPT?=1
HIPACC_CONFIG?=128x1
HIPACC_EXPLORE?=off
HIPACC_TIMING?=off
HIPACC_TARGET?=Tesla-13


HIPACC_OPTS=-target $(HIPACC_TARGET)
ifdef HIPACC_PAD
    HIPACC_OPTS+= -emit-padding $(HIPACC_PAD)
endif
ifdef HIPACC_LMEM
    HIPACC_OPTS+= -use-local $(HIPACC_LMEM)<commit_msg>Update documentation.<commit_after># Configuration
COMPILER     ?= ./bin/hipacc
COMPILER_INC ?= -std=c++11 -stdlib=libc++ \
                -I`@CLANG_EXECUTABLE@ -print-file-name=include` \
                -I`@LLVM_CONFIG_EXECUTABLE@ --includedir` \
                -I`@LLVM_CONFIG_EXECUTABLE@ --includedir`/c++/v1 \
                -I/usr/include \
                -I@DSL_INCLUDES@
TEST_CASE    ?= ./tests/opencv_blur_8uc1
MYFLAGS      ?= -DWIDTH=2048 -DHEIGHT=2048 -DSIZE_X=5 -DSIZE_Y=5
NVCC_FLAGS    = -gencode=arch=compute_$(GPU_ARCH),code=\"sm_$(GPU_ARCH),compute_$(GPU_ARCH)\" \
                -ftz=true -prec-sqrt=false -prec-div=false -Xptxas \
                -v #-keep
OFLAGS        = -O3

# OpenCL specific configuration
ifeq ($(HIPACC_TARGET),Midgard)
    OCL_CC    = @NDK_CXX_COMPILER@ @NDK_CXX_FLAGS@ @NDK_INCLUDE_DIRS_STR@ -std=c++0x -Wall -Wunused
    OCL_LINK  = -lm -ldl -lstdc++ @NDK_LINK_LIBRARIES_STR@ @EMBEDDED_OPENCL_LFLAGS@
    OCL_INC   = @EMBEDDED_OPENCL_CFLAGS@
else
    OCL_CC    = @CMAKE_CXX_COMPILER@ -std=c++0x -Wall -Wunused
    OCL_LINK  = -lm -ldl -lstdc++ -lpthread @TIME_LINK@ @OPENCL_LFLAGS@
    OCL_INC   = @OPENCL_CFLAGS@
endif

# Renderscript specific configuration
RS_TARGET_API = @RS_TARGET_API@
ifge = $(shell if [ $(1) -ge $(2) ]; then echo true; else echo false; fi)


# Source-to-source compiler configuration
# use local memory -> set HIPACC_LMEM to off|on
# use texture memory -> set HIPACC_TEX to off|Linear1D|Linear2D|Array2D
# vectorize code (experimental, doesn't work) -> set HIPACC_VEC to off|on
# pad images to a multiple of n bytes -> set HIPACC_PAD to n
# map n output pixels to one thread -> set HIPACC_PPT to n
# use specific configuration for kernels -> set HIPACC_CONFIG to nxm
# generate code that explores configuration -> set HIPACC_EXPLORE to off|on
# generate code that times kernel execution -> set HIPACC_TIMING to off|on
HIPACC_LMEM?=off
HIPACC_TEX?=off
HIPACC_VEC?=off
HIPACC_PPT?=1
HIPACC_CONFIG?=128x1
HIPACC_EXPLORE?=off
HIPACC_TIMING?=off
HIPACC_TARGET?=Tesla-13


HIPACC_OPTS=-target $(HIPACC_TARGET)
ifdef HIPACC_PAD
    HIPACC_OPTS+= -emit-padding $(HIPACC_PAD)
endif
ifdef HIPACC_LMEM
    HIPACC_OPTS+= -use-local $(HIPACC_LMEM)
{'fraction_non_alphanumeric': 0.11733999092147072, 'fraction_numerical': 0.013617793917385384, 'mean_word_length': 3.52, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2841740', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1724, 'n_words': 368}