Skip to content

Fix clashing enqueue kernel wrapper functions #53572

@AnastasiaStulova

Description

@AnastasiaStulova

The way wrapper kernels are generated for blocks used in enqueu_kernel doesn't take into account linking of multiple modules that have enqueued blocks with the same name. There are multiple ways how it can be avoided:

  • By adding translation unit name into kernel wrapper;
  • By hashing.

See original discussion in https://reviews.llvm.org/D115523.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OpenCLclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions