Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
SMP example?
-
I'm trying to use SMP to take advantage of multiple processors, but i get consistent PANICs. I'm wondering if i need to mask signals or use the pthread_setaffinity_np(). Any example would be really helpful. Thanks!
----------------- callstack ----------------- [0d009755] up_assert + 0xc5 [0d062916] g_scui2c0 + 0x43 [0d0076eb] _assert + 0x7 [0d04dbd1] syslogstream_putc + 0x1 [0d001f1b] arm_hardfault + 0x23 [0d001ef9] arm_hardfault + 0x1 [0d003e7f] irq_dispatch + 0x17 [0d001edf] arm_doirq + 0x27 [0d0628bc] g_cpu_intstack_top + 0x0 [0d000311] exception_common + 0x39 [0d07e244] _ZL14trained_tflite + 0x1a904 [0d028998] _ZN6tflite3ops5micro4conv23EvalQuantizedPerChannelEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_ + 0x23c [0d028829] _ZN6tflite3ops5micro4conv23EvalQuantizedPerChannelEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_ + 0xcd [0d004a21] spin_setbit + 0x1b [0d004a5b] spin_clrbit + 0x1b [0d028fdd] _ZN6tflite3ops5micro4conv4EvalEP13TfLiteContextP10TfLiteNode + 0xb9 [0d07e234] _ZL14trained_tflite + 0x1a8f4 [0d07e208] _ZL14trained_tflite + 0x1a8c8 [0d0128df] _ZN6tflite16MicroInterpreter6InvokeEv + 0x53 [0d00cae7] _Z10_tf_threadPv + 0xf7 [0d004a5b] spin_clrbit + 0x1b [0d054d9b] pthread_startup + 0x9 [0d054d93] pthread_startup + 0x1
-
Me too. Any hints would be appreciated.
-
Hey, @Stanton
We do have one example.
https://github.com/sonydevworld/spresense-nuttx-apps/tree/fb3f4e3e48fb915ddcb9224d374f666d2de85aff/testing/smpConfiguration for that would be from smp_asmp example.