intel / DML

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

HW path does not work with job_api_example #17

Closed gaowayne closed 1 year ago

gaowayne commented 2 years ago

I change job_api_example to HW path

int main(const int argc, char *const argv) { // Variables dml_job_t dml_job_ptr = NULL; uint32_t total_fails = 0u;

// Allocate dml_job_t
dml_job_ptr = init_dml_job(DML_PATH_SW);

change this into DML_PATH_HW, then I just got a lot of error and fail without any log to show me root cause or suggest next action.

[root@localhost dml_job_api]# ./job_api_samples 
Intel(R) Data Mover Library Job API Examples

============================== LEGALS ==============================

Copyright (C) 2021 Intel Corporation

SPDX-License-Identifier: MIT====================================================================

------------------------------------------
    Run example # 1

     Example of using Intel DML DML_OP_NOP operation 
     --- Buffers size to DML_OP_NOP operation: 128
     --- DML_OP_NOP property: no any specific properties 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 2

     Example of using Intel DML DML_OP_MEM_MOVE operation 
     --- Buffers size to DML_OP_MEM_MOVE operation: 128
     --- DML_OP_MEM_MOVE property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 3

     Example of using Intel DML DML_OP_FILL operation 
     --- Buffers size to DML_OP_FILL operation: 128
     --- DML_OP_FILL property: no any specific properties 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 4

     Example of using Intel DML DML_OP_COMPARE_PATTERN operation 
     --- Buffers size to DML_OP_COMPARE_PATTERN operation: 128
     --- DML_OP_COMPARE_PATTERN property: none

     Array is equal to pattern 
     --- Status : 100
     --- Result : 0
     --- Offset : 0

     Array is NOT equal to pattern 
     --- Status : 100
     --- Result : 0
     --- Offset : 0

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 5

     Example of using Intel DML DML_OP_DIF_UPDATE operation 
     --- Buffers size to DML_OP_DIF_UPDATE operation: 4104
     --- DML_OP_DIF_UPDATE property: BLOCK_SIZE is 4096 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 6

     Example of using Intel DML DML_OP_DIF_INSERT operation 
     --- Buffers size to DML_OP_DIF_INSERT operation: 4096 and 4104
     --- DML_OP_DIF_INSERT property: BLOCK_SIZE is 4096 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 7

     Example of using Intel DML DML_OP_DIF_CHECK operation 
     --- Buffers size to DML_OP_DIF_CHECK operation: 4096 and 4104
     --- DML_OP_DIF_CHECK property: BLOCK_SIZE is 4096 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 8

     Example of using Intel DML DML_OP_DIF_STRIP operation 
     --- Buffers size to DML_OP_DIF_STRIP operation: 4104 and 4096
     --- DML_OP_DIF_STRIP property: BLOCK_SIZE is 4096 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 9

     Example of using Intel DML DML_OP_CACHE_FLUSH operation 
     --- Buffers size to DML_OP_CACHE_FLUSH operation: 128
     --- DML_OP_CACHE_FLUSH property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 10

     Example of using Intel DML DML_OP_BATCH operation 
     --- Buffers size to DML_OP_BATCH operation: 128
     --- DML_OP_BATCH property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 11

     Example of using Intel DML DML_OP_CRC operation 
     --- Buffers size to DML_OP_CRC operation: 128
     --- DML_OP_CRC property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 12

     Example of using Intel DML DML_OP_CRC_COPY operation 
     --- Buffers size to DML_OP_CRC_COPY operation: 128
     --- DML_OP_CRC_COPY property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 13

     Example of using Intel DML DML_OP_CRC operation with dml_submit_job 
     --- Buffers size to DML_OP_CRC operation: 128
     --- DML_OP_CRC property: no any specific properties 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 14

     Example of using Intel DML DML_OP_DELTA_CREATE operation 
     --- Buffers size to DML_OP_DELTA_CREATE operation: 128
     --- DML_OP_DELTA_CREATE property: none 

    Example return: FAIL (Status 100)

------------------------------------------
    Run example # 15

     Example of using Intel DML DML_OP_DELTA_APPLY operation 
     --- Buffers size to DML_OP_DELTA_APPLY operation: 128
     --- DML_OP_DELTA_APPLY property: none 

    Example return: FAIL (Status 100)

====== Examples Execution Completed ======
     --- Total Samples run:                     15
     --- Samples completed with OK status:      0
     --- Samples completed with FAIL status:    15
[root@localhost dml_job_api]# 
gaowayne commented 2 years ago

please notice I have good kernel DSA driver configure, I can run SPDK kernel path DRAM to DRAM copy done well.

mzhukova commented 1 year ago

Hi @gaowayne, 100 error code is DML_STATUS_LIBACCEL_NOT_FOUND, this most probably mean that you don't have libaccel-config.so.1 installed on your system. Please, double check if it is available in usr/lib64.

mzhukova commented 1 year ago

Hi @gaowayne please, let me know if you still see the issue or if this could be closed.

gaowayne commented 1 year ago

Hi @gaowayne please, let me know if you still see the issue or if this could be closed.

sorry man, I lost the DSA HW environment, I cannot verify this now.

mzhukova commented 1 year ago

Closing the issue as it can't be reproduced anymore.