Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cpu_utils.cc #3

Merged
merged 1 commit into from
May 31, 2020
Merged

Update cpu_utils.cc #3

merged 1 commit into from
May 31, 2020

Conversation

tpoisonooo
Copy link
Contributor

这部分代码貌似源自系统的 /usr/include/sched.h,TNN 编译有 redefined 冲突。
例如

/home/ubuntu/TNN/source/tnn/utils/cpu_utils.cc:165:0: warning: "__NCPUBITS" redefined

复现方法:

aws 上面买个最便宜的 arm 服务器,编译即可看到。

ubuntu@ip-172-31-22-56:~$ uname -a
Linux ip-172-31-22-56 5.3.0-1019-aws #21~18.04.1-Ubuntu SMP Mon May 11 12:34:28 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

这部分代码貌似源自系统的 `/usr/include/sched.h`,修复 arm linux 下的冲突。
例如
```
/home/ubuntu/TNN/source/tnn/utils/cpu_utils.cc:165:0: warning: "__NCPUBITS" redefined
```
@tpoisonooo tpoisonooo merged commit 6cda52f into master May 31, 2020
@darrenyao87 darrenyao87 deleted the tpoisonooo-patch-2 branch June 10, 2020 03:13
darrenyao87 pushed a commit that referenced this pull request Jul 13, 2020
@cc0706329 cc0706329 mentioned this pull request Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant