Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when trying to run gemm code for ARM benchmark #122

Open
Aditya-Dev598 opened this issue Apr 28, 2020 · 2 comments
Open

Getting error when trying to run gemm code for ARM benchmark #122

Aditya-Dev598 opened this issue Apr 28, 2020 · 2 comments

Comments

@Aditya-Dev598
Copy link

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.

@Aditya-Dev598
Copy link
Author

Just to add in the CPU I'm using is ARM-Cortex57

@harikeshshinde
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants