Skip to content

DPC++ headers do not compile with -DDISABLE_SYCL_INSTRUMENTATION_METADATA option. #7270

Closed
@bader

Description

@bader

Describe the bug
DPC++ compiler is not able to parse sycl/sycl.hpp header file when -DDISABLE_SYCL_INSTRUMENTATION_METADATA option is set.

To Reproduce

echo "#include <sycl/sycl.hpp>" > /tmp/test.cpp && clang++ -fsycl -DDISABLE_SYCL_INSTRUMENTATION_METADATA /tmp/test.cpp

I see errors like

include/sycl/usm.hpp:137:27: error: no matching function for call to 'aligned_alloc_device'

Environment (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions