小编Man*_*uel的帖子

为什么对于两个核心,同一核心(超线程)中的两个线程的L1写访问访问最差?

我已经制作了ac/c ++程序(printf和的混合std::)来了解不同的缓存性能.我想并行化一个计算大块内存的进程.我必须在相同的内存位置上进行多次计算,因此我会在结果上写入结果,覆盖源数据.当第一个微积分完成后,我再做一个以前的结果.

I've guessed if I have two threads, one making the first calculus, and the other the second, I would improve performance because each thread does half the work, thus making the process twice as fast. I've read how caches work, so I know if this isn't done well, it may be even worse, so I've write a small program to measure everything.

(See below for machine topology, CPU type and flags and source code.) …

c++ x86 multithreading

5
推荐指数
1
解决办法
191
查看次数

标签 统计

c++ ×1

multithreading ×1

x86 ×1