DeepBench
DeepBench copied to clipboard
Getting error when trying to run gemm code for ARM benchmark
I'm trying to rum the gemm code for ARM benchmark on NVIDIA Jetson TX2. these are the modifications that I made in the Makefile.
all: gemm conv sparse
BIN_DIR?=bin EIGEN_PATH?=Eigen/Eigen MKDIR=mkdir -p ARM_COMPUTE_INCLUDE_PATH?=/usr/local/ARMComputeLib ARM_COMPUTE_LIB_PATH?=/usr/local/ARMComputeLib/ ARM_COMPUTE_LIB=$(ARM_COMPUTE_LIB_PATH)/lib/linux-arm64-v8a-neon KERNELS_DIR=../kernels/
gemm: gemm_bench.cc $(MKDIR) $(BIN_DIR) g++ -O3 --std=c++11 -I $(KERNELS_DIR) -lpthread -o bin/gemm_bench $<
When i run the command on the terminal.
nvidia@nvidia-desktop:~/Downloads/DeepBench-master/code/arm$ ./run_gemm_bench.sh
This is the error that I got
fatal: not a git repository (or any of the parent directories): .git mkdir -p bin g++ -O3 --std=c++11 -I ../kernels/ -lpthread -o bin/gemm_bench gemm_bench.cc gemm_bench.cc:6:10: fatal error: gemmlowp/public/gemmlowp.h: No such file or directory #include "gemmlowp/public/gemmlowp.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:12: recipe for target 'gemm' failed make: *** [gemm] Error 1 build success! start running! ./run_gemm_bench.sh: line 8: bin/gemm_bench: No such file or directory running complete!
It will be grateful if anyone can help me out.
Just to add in the CPU I'm using is ARM-Cortex57
Basically gemmlowp library is missing which we need to link externally.
To do so git clone the below repository $ git clone https://github.com/google/gemmlowp.git
Once done open gemm_bench.cc file and specific the path of gemmlowp folder which is cloned In my case it was under my home directory i.e #include "/home/harikesh/gemmlowp/public/gemmlowp.h"
This should work and you'll be able to build gemm_bench kernel.