Skip to content

[sycl-post-link] Refactor algorithm that searches for kernels with device assert built-in call in call stack #4829

Closed
@mlychkov

Description

@mlychkov

Current algorithm of searching kernels calling __devicelib_assert_fail (see function getKernelNamesUsingAssert(const Module &M) ) is very inefficient. Current implementation goes over all functions in the module from a kernel down to called device functions even if __devicelib_assert_fail not declared.

Bottom-up approach is way more efficient. I.e. start with __devicelib_assert_fail function declaration and travers users gathering kernels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions