CUDA canberra similarity and cosine similarity calculation with sparse matrix

Hi,

I am new to CUDA, I want to do canberra similarity and cosine similarity computation with vector and sparse matrix as input. I plan to add this functionality to my Spring Boot application, could anyone help me find out the best practise? Much appreciated.