[Openmp-commits] [openmp] [OpenMP] Align up the size when calling aligned_alloc (PR #65525)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Mon Sep 11 14:18:05 PDT 2023


shiltian wrote:

First, I don't think it will affect the performance of Intel hardware since it just "wastes" some memory. Next, as pointed by the two links in this PR, it is UB if the size is not a multiple of the alignment. The fact that it works on Intel hardware doesn't make it a right implementation. Lastly, if this feature is designed specifically for Intel, we need to restrict its use to Intel only hardware and disable the test on other platforms.

https://github.com/llvm/llvm-project/pull/65525


More information about the Openmp-commits mailing list