intel / DML

Intel® Data Mover Library (Intel® DML)
https://intel.github.io/DML/
MIT License
85 stars 17 forks source link

A question about dml_finalize_job #37

Closed Sean58238 closed 12 months ago

Sean58238 commented 12 months ago

In example code "multi_socket_example.c", destroy a pointer but add a constant : "jobs + SOCKET_COUNT"

cleanup:
    for (uint32_t i = 0; i < SOCKET_COUNT; ++i)
    {
        dml_finalize_job(jobs + SOCKET_COUNT);
    }

why here is a constant , is not a variable offset for "jobs + i"


cleanup:
    for (uint32_t i = 0; i < SOCKET_COUNT; ++i)
    {
        dml_finalize_job(jobs + i);
    }
mzhukova commented 12 months ago

Good catch, fix should be available in a bit.

mzhukova commented 12 months ago

@Sean58238 please check https://github.com/intel/DML/commit/47a92c336d9f164d18b7644c9d8c5d0bb414fc67 and let me know if this issues is resolved.

Sean58238 commented 12 months ago

great, thanks a lot!