add benchmark to app. TODO: test benchmark.
This commit is contained in:
parent
59fa9c1c20
commit
ee849ad76d
|
@ -143,7 +143,7 @@ pthread_t benchmark_task;
|
||||||
static int embenchmark(void) {
|
static int embenchmark(void) {
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
attr.schedparam.sched_priority = 25;
|
attr.schedparam.sched_priority = 25;
|
||||||
attr.stacksize = 8192;
|
attr.stacksize = 16384;
|
||||||
|
|
||||||
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
|
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
|
||||||
// run_benchmark(NULL);
|
// run_benchmark(NULL);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* See the Mulan PSL v2 for more details.
|
* See the Mulan PSL v2 for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
__STACKSIZE__ = 8192;
|
__STACKSIZE__ = 16384;
|
||||||
OUTPUT_ARCH( "riscv" )
|
OUTPUT_ARCH( "riscv" )
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue