Open pmousoul opened 5 years ago
some gdb output:
(gdb) run Xilinx 8 ./images/camel.jpg ./images/fish.jpg
Thread 1 "googlenet.elf" received signal SIGSEGV, Segmentation fault.
0x0000007fbf3d4680 in loadConvWgtsTXT(xChangeLayer*, float const*, float const*, int*, int, int, int, char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from lib/libxstack.so
(gdb) bt
#0 0x0000007fbf3d4680 in loadConvWgtsTXT(xChangeLayer*, float const*, float const*, int*, int, int, int, char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from lib/libxstack.so
#1 0x0000007fbf3d6ef4 in convInit(XlayerData*, xChangeLayer*, int, file_paths_*, int&, int) () from lib/libxstack.so
#2 0x0000007fbf3dc8f0 in initXChangeHost(char*, std::vector<XlayerData, std::allocator<XlayerData> >&, std::vector<xChangeLayer, std::allocator<xChangeLayer> > (&) [1], int) () from lib/libxstack.so
#3 0x0000007fbf3f9ea4 in xiInit(char*, char*, char*, _io_layer_info*, int, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from lib/libxstack.so
#4 0x0000000000403e84 in main ()
Hi @pmousoul I have a similar problem with you. Have you solved this problem? "Failed to create memory!"
Thanks, xuelei
Hello xuelei,
the problem, at least in my case, is that sds_alloc() function cannot allocate memory returning a NULL pointer value.
I guess that this is caused because of bad kernel configuration when building PetaLinux for the specific platform. There is a kernel parameter which indicates how much memory can sds_alloc() allocate.
So, I think that the solution is to rebuild PetaLinux for your platform and take care the sds_alloc() related kernel parameters during kernel configuration.
Cheers, Panos
@pmousoul Thank you for your reply.
I set mega size to 1024 in the kernel, but this problem still occurs. Later, when I changed all sys_port to AFI, I can allocate memory successfully. However, in this case, SDSOC automatically allocated HP ports. I did not know whether there was any performance loss.
In addition, I browsed a lot of issues. CHAIDNN originally planned to release the v3 version in 2018.12, and supported mobilenet and yolo. But they were not updated later. Do you know why?
Thanks, xuelei
Hello,
I've built a custom platform for the Ultra96 board as it is shown in the CHaiDNN documentation.
After that, I build the SW and put everything on the SD.
When I try to run GoogLeNet, I get the following messages:
What is it going wrong - where should I look for a solution?
Thanks, Panos