未验证 提交 e1182dca 编写于 作者: N NesQl 提交者: GitHub

T lite (#373)

* Modify bug #372
Co-authored-by: Nliqi <qli@openailab.com>
上级 5c6a5764
......@@ -160,10 +160,9 @@ static struct dev_allocator cpu_allocator = {
#ifdef STANDLONE_MODE
void register_cpu_allocator(void)
#else
REGISTER_DEV_ALLOCATOR(register_cpu_allocator);
static void register_cpu_allocator(void)
{
init_allocator_registry(&cpu_allocator);
}
REGISTER_DEV_ALLOCATOR(register_cpu_allocator);
#endif
......@@ -339,7 +339,6 @@ int set_cpu_affine(size_t mask)
return -1;
#endif
return 0;
#elif __APPLE_IOS__
// thread affinity not supported on ios
( void )mask;
......@@ -349,6 +348,8 @@ int set_cpu_affine(size_t mask)
if (0 != status)
return -1;
#endif
return 0;
}
size_t get_cluster_mask(int cluster)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册