oneDNN icon indicating copy to clipboard operation
oneDNN copied to clipboard

ukernel: use thread-local, cache-line aligned buffers in execute functions

Open ankalinin opened this issue 1 year ago • 2 comments

Optimize ukernel multithreaded performance through cache-line aligned memory management:

  • Introduction of a thread-local, cache-line aligned buffer for batch elements, which replaces the previous use of a standard vector. This helps prevent cache line sharing across threads and reduces memory allocation overhead.
  • Documentation is also updated to reflect the importance of input buffers memory alignment for performance.

ankalinin avatar Dec 05 '25 20:12 ankalinin

make test set test_scope=NIGHTLY

disable compiler_gnu9 disable compiler_icx-previous disable compiler_icx-oss disable compiler_vs2022

disable build_vendor_amd disable build_vendor_nvidia disable build_graph disable build_cpu_runtime_tbb disable build_cpu_runtime_sycl disable build_gpu_runtime_sycl disable build_gpu_runtime_ocl disable build_mode_no_cpu disable test_device_gpu disable test_experimental_bnorm_sop

disable benchdnn_all enable benchdnn_brgemm enable benchdnn_conv enable benchdnn_matmul enable benchdnn_rnn

ankalinin avatar Dec 05 '25 20:12 ankalinin

Pre-commit testing with various compilers is here

ankalinin avatar Dec 08 '25 21:12 ankalinin

make test set test_scope=NIGHTLY

disable compiler_gnu9 disable compiler_icx-previous disable compiler_icx-oss disable compiler_vs2022

disable build_vendor_amd disable build_vendor_nvidia disable build_graph disable build_cpu_runtime_tbb disable build_cpu_runtime_sycl disable build_gpu_runtime_sycl disable build_gpu_runtime_ocl disable build_mode_no_cpu disable test_device_gpu disable test_experimental_bnorm_sop

disable benchdnn_all enable benchdnn_brgemm

ankalinin avatar Dec 12 '25 18:12 ankalinin