Skip to content

question about kernel name #4569

Closed
@bader

Description

@bader

Discussed in #4551

Originally posted by zjin-lcf September 13, 2021
When the kernel name is "distance" (i.e. ), the compiler error implies that the name is in conflict with something defined in sycl_span.hpp.

The compiler reported the error with the HIP/ROCm backend. The compiler does not report the error for the CUDA backend. Could you reproduce the error using any sycl program ?

error: invalid operands to binary expression ('size_t' (aka 'unsigned long') and 'distance')
    _SYCL_SPAN_ASSERT(_Extent == distance(__f, __l),
``` </div>

Metadata

Metadata

Assignees

Labels

runtimeRuntime library related issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions