Skip to content

How to implement accelerator support as a backend? #11968

Answered by zhouwg
taronaeo asked this question in Q&A
Discussion options

You must be logged in to vote

hello @taronaeo,

glad to see your technical discussion.

when I see this:

Is there a specific function that I should be calling/putting the tensor initialisation implementation such that ggml_tensor's data can be mapped to ztensor? There are a whole bunch of steps required to prepare the ztensor for computation and I can't seem to find a suitable function to have all these done.

I think following code snippet in function ggml_qnn_add() would be helpful for your zDNN backend:

QNN_VER_PTR(*tensor_0)->clientBuf = {src0->data,
                                             qnn_get_ggml_tensor_data_size(src0)};
        QNN_VER_PTR(*tensor_1)->clientBuf = {src1->data,
                           …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@zhouwg
Comment options

Answer selected by taronaeo
@taronaeo
Comment options

@zhouwg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants