Xilinx / LSTM-PYNQ

BSD 3-Clause "New" or "Revised" License
86 stars 29 forks source link

cma_alloc error while loading libhw*.so #4

Closed ussamazahid96 closed 5 years ago

ussamazahid96 commented 5 years ago

Hi,

I cross compiled libhw-plain-W2A2-ocr-pynq.so and libsw-plain-W2A2-ocr-pynq.so files as described in src/README.md. libsw works fine but while initiating hw_ocr with RUNTIME_HW I am getting the following error:

OSError: cannot load library '/usr/local/lib/python3.6/dist-packages/lstm_pynq-0.2-py3.6.egg/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so': /usr/local/lib/python3.6/dist-packages/lstm_pynq-0.2-py3.6.egg/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so: undefined symbol: cma_alloc. Additionally, ctypes.util.find_library() did not manage to locate a library called '/usr/local/lib/python3.6/dist-packages/lstm_pynq-0.2-py3.6.egg/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so'

giuliogamba commented 5 years ago

Hi, this is a bug due to different libraries in different PYNQ images. Please refer to this: #1