c3sr / comm_scope

NUMA-aware multi-CPU multi-GPU data transfer benchmarks
https://github.com/c3sr/scope
Apache License 2.0
21 stars 3 forks source link

Use clflush with "+m" output operand? #10

Closed cwpearson closed 5 years ago

cwpearson commented 6 years ago

https://github.com/c3sr/comm_scope/blob/5db2562505e55c6852dd3ed7222b73566612efda/src/utils/cache_control.hpp#L33

This linux version uses "+m" on an output operand instead of "m" on an input operand.

https://github.com/torvalds/linux/blob/7876320f88802b22d4e2daf7eb027dd14175a0f8/arch/x86/include/asm/special_insns.h#L213-L216