[hardware development] 如何指定通过cpu大核运行程序?
Tofloor
poster avatar
138******38
deepin
2023-08-15 21:16
Author

最近买了一台新的电脑来编译程序,cpu是 intel 13700,8小核+8大核,安装的是deepin 20.9。

我的程序是C++程序,使用intel 的icpx编译。

同样的程序,运行起来有时快有时慢,慢的时候时间多了将近一倍,我猜测快的时候是用大核在跑,慢的时候是用小核在跑,但不能确定。

请问各位大大,有没有什么指令指定程序通过大核运行?

Reply Favorite View the author
All Replies
waittingsummer
deepin
2023-08-15 21:50
#1

问到知识盲区了

Reply View the author
jjcui8595
deepin
2023-08-15 21:57
#2

建议编译安装最新版本内核,对新硬件的支持会更完善

Reply View the author
DebuggerX
deepin
2023-08-15 22:11
#3

taskset

Reply View the author
deltacatxx
deepin beta test group
2023-08-15 22:36
#4

更新内核或者在bios里关闭小核?

Reply View the author
fuuko
deepin
2023-08-15 22:47
#5

intel自己的工具链都搞不定,那可以洗洗睡了

如果是自己写的代码,可以调相关的api来指定和特定编号的核心的亲和力

Reply View the author
落日
deepin
2023-08-16 00:27
#6

bios直接关闭小核

Reply View the author