Closed andresovela closed 4 months ago
Hi Andres,
The version mismatches should mostly be ok; the one exception is the file it downloaded. We're in the process of making the download grab the latest version of GitHub, instead xmake found a really old version on-line!
Remove lib_src and clone GitHub.com/xmos/lib_src in its place.
xmake clean && xmake
and it ought to compile.
The xmake clean is normally not necessary, but replacing a whole library underneath it may confuse the dependencies slightly.
Thanks, that did get me farther but it failed with this:
Creating audio_network.xe
model_audioi16.tflite.cpp: Warning: Undefined reference to '_ZN6tflite3ops5micro5xcore18Register_XC_pad_v2Ev'
model_audioi16.tflite.cpp: Error: Undefined reference to '_ZN6tflite3ops5micro5xcore18Register_XC_pad_v2Ev'
xmake[1]: *** [bin//audio_network.xe] Error 1
xmake: *** [bin//audio_network.xe] Error 2
model_audioi16.tflite.cpp is probably generated with an old version of xcore-opt than the latest; I probably shouldn't have checked it in
I tried to regenerate the cpp with xcore-opt v1.2.0 (latest?), and it fails with this error:
xcore-opt model_audioi16.tflite -o model_audioi16.tflite
model_audioi16.tflite:0:0: warning: loc("4X"("model_audioi16.tflite":0:0)) : Quadratic approximation error of 17 larger than set threshold of 1, therefore reverting to reference op!
Inspect the output, and if suitable, set a higher threshold with --xcore-quadratic-lookup-error.
Failed to get registration from op code CUSTOM
AllocateTensors() failed
<unknown>:0: error: Could not set up compile
Hi @andresovela, that's the optimized model. That is probably out-of-date now. denoise_16x8.tflite
is the source model. Could you please try with that one?
Ah I see. I was able to build the example but now I don't really know what it's supposed to do. I ran xrun --xscope bin/audio_network.xe
and don't see any output (not sure if there should be or not). I also don't see the evk as an available sound card on my PC.
This model was prepared to be used in an example app as a CES demo. Let me try to find more information.
I think you may have the evaluation kit https://www.xmos.com/xk-evk-xu316 ? The software is designed to run on the multi-channel audio board; the same chip but different audio hardware https://www.xmos.com/xk-audio-316-mc-ab
Ah okay, yes, I have the XK-EVK-XU316
I'll close this issue since I don't have the right EVK to test it.
I guess this question is more about how to use the build system.
I ran
xmake
insideexamples/audio_network
. I already have the required libs but the build system warns about version mismatches. What's the intended way to manage dependencies using xmake? If I delete all my libs and download the required versions for this example somehow, I'll break other applications that depend on the versions I currently have.This is the output I get:
I'll appreciate any guidance here :)