Skip to content

oneDAL dbscan sample code exception #3002

Closed
@AlexZhao-becls

Description

@AlexZhao-becls

oneDAL dbscan sample code exception

Build and run oneDAL/examples/oneapi/cpp/source/dbscan/dbscan_brute_force_batch.cpp.
Exception occurs when to call
const auto result_compute = dal::compute(q, dbscan_desc, x_data);

Debugger stops in Line 65 of compute_ops.hpp as below:

    template <typename Context>
    auto operator()(const Context& ctx, const Descriptor& desc, const input_t& input) const {
        check_preconditions(desc, input);
        const auto result =   // line 65
           compute_ops_dispatcher<Context, float_t, method_t, task_t>()(ctx, desc, input);
        check_postconditions(desc, input, result);
       return result;
    }

Exception thrown at 0x0000000000000000 in TestDBSCAN.exe: 0xC0000005: Access violation executing location 0x0000000000000000.

The sycl::queue q is built on CPU - Intel(R) OpenCL, 12th Gen Intel(R) Core(TM) i7-1260P
OS: Windows 10 Enterprise 22H2
oneAPI: 2025.0
Visual Studio 2022 64-bit Version 17.7.5

Try to remove the explicit "q" param as below:
const auto result_compute = dal::compute(dbscan_desc, x_data);
there is no exception.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions