cosineSimilaritySSDenseMultiCardBlocking - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
#include "xf_graph_L3.hpp"
int cosineSimilaritySSDenseMultiCardBlocking (
    xf::graph::L3::Handle& handle,
    int32_t deviceNm,
    int32_t sourceNUM,
    int32_t* sourceWeights,
    int32_t topK,
    xf::graph::Graph <int32_t, int32_t>** gr,
    int32_t* resultID,
    float* similarity

The Multi-cards’ single source cosine similarity API for dense graph.


handle Graph library L3 handle
deviceNm FPGA card ID
sourceNUM Input, sourceWeights buffer length of source vertex
sourceWeights Input, weights of the source vertex’s out members
topK Input, the output similarity buffer length
gr Input, CSR graph of IDs’ type of int32_t and weights’ type of int32_t
resultID Output, the topK highest similarity IDs
similarity Output, similarity values corresponding to theirs IDs