- Notifications
You must be signed in to change notification settings - Fork18
Description
Is there any instruction for debugging DML_STATUS_INTERNAL_ERROR? I run into this issue randomly when running multi-threads application calling OP_MEM_MOVE. It fails some time but passes next time with exactly same src/dest addresses and copy length.
part of the code is shown below:
dml_job_tdml_job_ptr = NULL;
dml_path_t execution_path = DML_PATH_HW;
uint32_t size = 0u;
status = dml_get_job_size(execution_path, &size);
dml_job_ptr = (dml_job_t)malloc(size);
status = dml_init_job(execution_path, dml_job_ptr);
dml_job_ptr->operation = DML_OP_MEM_MOVE;
dml_job_ptr->source_length = 161024;
dml_job_ptr->source_first_ptr = src_ptr; / 16KB aligned/
dml_job_ptr->destination_first_ptr = dst_ptr; / 16KB aligned */
status = dml_execute_job(dml_job_ptr, DML_WAIT_MODE_BUSY_POLL);