pulp-platform / regression_tests

5 stars 16 forks source link

Building the seizure detection application for pulpissimo cv32e40p single core - missing libraries #22

Open shariethernet opened 1 month ago

shariethernet commented 1 month ago

Hi @luca-valente @micprog ,

I am trying to build the seizure detection application for pulpissimo on cv32e40p .

Though there were several issues, and things didn't work by just running the makefile. I have modified the Makefile.seq as seen below

PULP_APP_SRCS = main.c libSVM_load_model.c libSVM_predict.c pca_.c wavelet_.c math_fns.c 

PULP_CFLAGS = -O3 -g  -DSEQ -I$(PULP_SDK_HOME)/include/bench -DFP_SW_EMUL -DHWSQRT=0 -DHWDIV=0 -I$(PULP_SDK_HOME)/include
PULP_LDFLAGS = -lm 
l2Size=362144 #256k
l1Size=300000 
stackSize = 20000 #12288 #12k 
include $(PULP_SDK_HOME)/install/rules/pulp.mk

However, there are a lot of undefined references to plp_alloc_l1, mchan_memcpy_async svm_free_and_destroy_model (seems like a whole libsvm.h is missing) .

I am coming to this in reference to the paper on seizure detection implemented with pulpissimo and would like to compare it with my work. I would appreciate if you could help with this. Thanks in advance :)

luca-valente commented 1 month ago

Hi @shariethernet , I think you want to use the pulp-sdk to run the seizure detection application, not the pulp-runtime.

sridharshinim commented 1 month ago

Hi @luca-valente,

Thank you for your response.

I tried to use pulp-sdk to run the seizure detection application but encountered the same issues again.

Here are the steps I followed:

  1. Clone pulp-sdk repo, source pulp-open.sh and built gvsoc.
  2. Clone pulpissimo repo, built the questasim platform from latest IP versions and set the vsim path.
  3. Execute seizure detection using "make clean all run pulpFpu=1 pulpDiv=1 -f Makefile.seq" (for single core).

I'm seeing a lot of undefined references to plp_alloc_l1, l1free etc. Could you kindly review this workflow and let us know if there is anything we might be overlooking? Thanks in advance!