GreenWaves-Technologies / MobilenetV1_Pytorch

This is showing Mobilenet V1 NN Quantized 8 bit from Pytorch.
5 stars 1 forks source link

Error Building the Code #1

Closed anujdutt9 closed 4 years ago

anujdutt9 commented 4 years ago

Hi, I have installed the latest version of gap_sdk and the hello world example works fine. But when I try to build this code, I am getting the following error:

>> make clean all run

rm -f GenMobilenet MN_Kernels.* MobilenetKernels.* GenMobilenetGraph
rm -f /home/anujd9/Downloads/MobilenetV1_Pytorch/BUILD/GAP8/GCC_RISCV/flash.img
gcc -o GenMobilenet  -Imbnets -I/home/anujd9/Downloads/gap_sdk/tools/autotiler_v3/generators/CNN -I/home/anujd9/Downloads/gap_sdk/tools/autotiler_v3/include -I/home/anujd9/Downloads/gap_sdk/tools/autotiler_v3/generators/CNN/include MobileNetModel.c /home/anujd9/Downloads/gap_sdk/tools/autotiler_v3/generators/CNN/CNN_Generators.c /home/anujd9/Downloads/gap_sdk/tools/autotiler_v3/lib/libtile.a
/tmp/ccdz3LC1.o: In function `CNN_ConvolutionPoolReLU':
CNN_Generators.c:(.text+0x16911): undefined reference to `CNN_Scm'
CNN_Generators.c:(.text+0x16928): undefined reference to `CNN_Scm'
CNN_Generators.c:(.text+0x17944): undefined reference to `CNN_SetUpperLowerBounds'
CNN_Generators.c:(.text+0x18b75): undefined reference to `CNN_EncodePoolOperation'
/tmp/ccdz3LC1.o: In function `CNN_ConvolutionMulBiasPoolReLU':
CNN_Generators.c:(.text+0x19c6d): undefined reference to `CNN_Scm'
CNN_Generators.c:(.text+0x19c84): undefined reference to `CNN_Scm'
CNN_Generators.c:(.text+0x1acf1): undefined reference to `CNN_SetUpperLowerBounds'
CNN_Generators.c:(.text+0x1c1fd): undefined reference to `CNN_EncodePoolOperation'
/tmp/ccdz3LC1.o: In function `CNN_GroupedConvolutionPoolReLU':
CNN_Generators.c:(.text+0x1d110): undefined reference to `CNN_LayerOutputDim'
/tmp/ccdz3LC1.o: In function `CNN_GroupedConvolutionMulBiasPoolReLU':
CNN_Generators.c:(.text+0x1d766): undefined reference to `CNN_LayerOutputDim'
/tmp/ccdz3LC1.o: In function `CNN_PoolReLU':
CNN_Generators.c:(.text+0x1e55f): undefined reference to `CNN_SetUpperLowerBounds'
CNN_Generators.c:(.text+0x1ea21): undefined reference to `CNN_EncodePoolOperation'
/tmp/ccdz3LC1.o: In function `CNN_LinearReLU':
CNN_Generators.c:(.text+0x1fefd): undefined reference to `CNN_SetUpperLowerBounds'
CNN_Generators.c:(.text+0x2094d): undefined reference to `CNN_EncodeActivation'
CNN_Generators.c:(.text+0x20e1f): undefined reference to `CNN_EncodeActivation'
/tmp/ccdz3LC1.o: In function `CNN_MatAddRelu':
CNN_Generators.c:(.text+0x21934): undefined reference to `CNN_SetUpperLowerBounds'
/tmp/ccdz3LC1.o: In function `CNN_MatAddDynAdjust':
CNN_Generators.c:(.text+0x2214a): undefined reference to `CNN_SetUpperLowerBounds'
/tmp/ccdz3LC1.o: In function `CNN_MatScale':
CNN_Generators.c:(.text+0x22940): undefined reference to `CNN_SetUpperLowerBounds'
/tmp/ccdz3LC1.o: In function `CNN_MatMul':
CNN_Generators.c:(.text+0x241d3): undefined reference to `CNN_SetUpperLowerBounds'
/tmp/ccdz3LC1.o: In function `CNN_MatMulSmallM1':
CNN_Generators.c:(.text+0x25244): undefined reference to `CNN_SetUpperLowerBounds'
/tmp/ccdz3LC1.o:CNN_Generators.c:(.text+0x26140): more undefined references to `CNN_SetUpperLowerBounds' follow
collect2: error: ld returned 1 exit status
Makefile:64: recipe for target 'GenMobilenet' failed
make: *** [GenMobilenet] Error 1

Can you please help me out where I am going wrong ? Thanks : )

Pafrak commented 4 years ago

Hi anujdutt9, indeed the code was to updated to latest sdk (3.5) that we just released yesterday. Now it should run fine.

anujdutt9 commented 4 years ago

Hi @Pafrak I have checked out the gap_sdk from the master branch today and I think it is 3.5 release. After that I have downloaded this code and it shows me this error.

Pafrak commented 4 years ago

Can you checkout the code again at try it?

anujdutt9 commented 4 years ago

Yes, it works now. Thanks :+1: