Skip to content

SIMDSort reads beyond end of array #1

@Reen

Description

@Reen

I tried to use your AVX2 SIMDSort code to sort a list of 2,000,000 floats. In the final pass of MergePass8 with run_size = 512 the code in the for-loop accesses memory outside the array. As 2,000,000 is divisible by 64, I do not run into the assert() at the entry point.

I tried to debug it, but I'm unable to find a reasonable abort criterion for the loop. Can you provide a hint on how to fix this?

Thank you for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions