<commit_before>BSVDIR=$(CONNECTALDIR)/bsv
INTERFACES        +=  MmRequestTN MmRequestNT TimerRequest MmIndication TimerIndication
BSVFILES   +=  $(CONNECTALDIR)/lib/rbm/bsv/RbmTypes.bsv $(CONNECTALDIR)/lib/rbm/bsv/Timer.bsv $(DBNTOPBSV)
CPPFILES   +=  $(CONNECTALDIR)/lib/matmul/cpp/portalmat.cpp $(TESTCPPFILES)
CONNECTALFLAGS  +=  -D IMPORT_HOSTIF -D MATRIX_TN
CONNECTALFLAGS  +=  --bscflags="+RTS -K26777216 -RTS -p +:$(MMDIR)/bsv"
CONNECTALFLAGS  +=  --bscflags " -Xc++ -DMATMUL_HACK" -D MATMUL_HACK

Dma = Dma
PINS = Std

FAMILY=$(shell echo $(BOARD) | sed 's/z.*/zynq/' | sed 's/k.*/kintex/' | sed 's/v.*/virtex/' | sed 's/miniitx.*/zynq/')

##
## To build testmm for Android on Zynq
## cd $(CONNECTALDIR); cd ..; git clone git://github.com:cambridgehackers/opencv-android-sdk.git
##

ifdef CUDA_PERF_TEST
OPENCVDIR=/scratch/opencv-cuda/opencv-2.4.9/install/
CONNECTALFLAGS  += -I$(OPENCVDIR)/include
CONNECTALFLAGS  += -L$(OPENCVDIR)/lib
CONNECTALFLAGS  += -L/usr/local/cuda-5.5/lib64
CONNECTALFLAGS  += --stl=stlport_static
CONNECTALFLAGS  += --clib z
CONNECTALFLAGS  += --clib cuda
CONNECTALFLAGS  += --clib cudart
CONNECTALFLAGS  += --clib nppi
CONNECTALFLAGS  += --clib nppc
CONNECTALFLAGS  += --clib npps
CONNECTALFLAGS  += --clib cufft
CONNECTALFLAGS  += --clib opencv_core
CONNECTALFLAGS  += --clib opencv_gpu
CONNECTALFLAGS  += --clib opencv_imgproc
CONNECTALFLAGS  += --clib opencv_core
CONNECTALFLAGS  += --clib opencv_objdetect
CONNECTALFLAGS  += --clib opencv_imgproc
CONNECTALFLAGS  += --clib cublas
CPPFILES   +=  $(MMDIR)/cpp/cuda.cpp 
else
CONNECTALFLAGS  +=  --clib opencv_core --stl=stlport_static
endif

ifeq (zynq,$(FAMILY))
NDK_DIR=$(shell ndk-which gcc | sed 's:toolchains.*::')
OPENCVDIR=$(CONNECTALDIR)/../opencv-android-sdk/sdk/native/
CONNECTALFLAGS += -I$(MMDIR)/cpp -I$(OPENCVDIR)/jni/include -L$(OPENCVDIR)/libs/armeabi-v7a -lz
CONNECTALFLAGS += -S$(NDK_DIR)/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_static.a
NUMBER_OF_MASTERS=2
endif
ifeq (bluesim,$(FAMILY))
NUMBER_OF_MASTERS=2
endif

synth-ip.tcl:
	ln -svf $(CONNECTALDIR)/examples/matmul/synth-ip.tcl .

prebuild:: synth-ip.tcl
	if [ "$(BOARD)" != "bluesim" ] ; then cd $(BOARD); vivado -notrace -mode batch -source ../synth-ip.tcl; fi

FPGAMAKE_CONNECTALFLAGS += -P mkMmTile --xci=$(IPDIR)/$(BOARD)/fp_add/fp_add.xci --xci=$(IPDIR)/$(BOARD)/fp_mul/fp_mul.xci
<commit_msg>updated Makefile.mm to sync with recent file moves<commit_after>BSVDIR=$(CONNECTALDIR)/bsv
INTERFACES        +=  MmRequestTN MmRequestNT TimerRequest MmIndication TimerIndication
BSVFILES   +=  $(CONNECTALDIR)/lib/rbm/bsv/RbmTypes.bsv $(CONNECTALDIR)/lib/rbm/bsv/Timer.bsv $(DBNTOPBSV)
CPPFILES   +=  $(CONNECTALDIR)/lib/matmul/cpp/portalmat.cpp $(TESTCPPFILES)
CONNECTALFLAGS  +=  -D IMPORT_HOSTIF -D MATRIX_TN
CONNECTALFLAGS  +=  --bscflags="+RTS -K26777216 -RTS -p +:$(CONNECTALDIR)/lib/matmul/bsv"
CONNECTALFLAGS  +=  --bscflags " -Xc++ -DMATMUL_HACK" -D MATMUL_HACK

Dma = Dma
PINS = Std

FAMILY=$(shell echo $(BOARD) | sed 's/z.*/zynq/' | sed 's/k.*/kintex/' | sed 's/v.*/virtex/' | sed 's/miniitx.*/zynq/')

##
## To build testmm for Android on Zynq
## cd $(CONNECTALDIR); cd ..; git clone git://github.com:cambridgehackers/opencv-android-sdk.git
##

ifdef CUDA_PERF_TEST
OPENCVDIR=/scratch/opencv-cuda/opencv-2.4.9/install/
CONNECTALFLAGS  += -I$(OPENCVDIR)/include
CONNECTALFLAGS  += -L$(OPENCVDIR)/lib
CONNECTALFLAGS  += -L/usr/local/cuda-5.5/lib64
CONNECTALFLAGS  += --stl=stlport_static
CONNECTALFLAGS  += --clib z
CONNECTALFLAGS  += --clib cuda
CONNECTALFLAGS  += --clib cudart
CONNECTALFLAGS  += --clib nppi
CONNECTALFLAGS  += --clib nppc
CONNECTALFLAGS  += --clib npps
CONNECTALFLAGS  += --clib cufft
CONNECTALFLAGS  += --clib opencv_core
CONNECTALFLAGS  += --clib opencv_gpu
CONNECTALFLAGS  += --clib opencv_imgproc
CONNECTALFLAGS  += --clib opencv_core
CONNECTALFLAGS  += --clib opencv_objdetect
CONNECTALFLAGS  += --clib opencv_imgproc
CONNECTALFLAGS  += --clib cublas
CPPFILES   +=  $(CONNECTALDIR)/lib/matmul/cpp/cuda.cpp 
else
CONNECTALFLAGS  +=  --clib opencv_core --stl=stlport_static
endif

ifeq (zynq,$(FAMILY))
NDK_DIR=$(shell ndk-which gcc | sed 's:toolchains.*::')
OPENCVDIR=$(CONNECTALDIR)/../opencv-android-sdk/sdk/native/
CONNECTALFLAGS += -I$(CONNECTALDIR)/lib/matmul/cpp -I$(OPENCVDIR)/jni/include -L$(OPENCVDIR)/libs/armeabi-v7a -lz
CONNECTALFLAGS += -S$(NDK_DIR)/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_static.a
NUMBER_OF_MASTERS=2
endif
ifeq (bluesim,$(FAMILY))
NUMBER_OF_MASTERS=2
endif

synth-ip.tcl:
	ln -svf $(CONNECTALDIR)/examples/matmul/synth-ip.tcl .

prebuild:: synth-ip.tcl
	if [ "$(BOARD)" != "bluesim" ] ; then cd $(BOARD); vivado -notrace -mode batch -source ../synth-ip.tcl; fi

FPGAMAKE_CONNECTALFLAGS += -P mkMmTile --xci=$(IPDIR)/$(BOARD)/fp_add/fp_add.xci --xci=$(IPDIR)/$(BOARD)/fp_mul/fp_mul.xci

{'fraction_non_alphanumeric': 0.16559851147405416, 'fraction_numerical': 0.00785610915856936, 'mean_word_length': 4.405586592178771, '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': '5419946', 'n_tokens_mistral': 2059, 'n_tokens_neox': 2066, 'n_words': 337}