DBSCAN Java with JCublas

Hello sir, Actually i am at college now in my final year. I have this kind of project that use jcublas for matrix operation. My final task about DBSCAN. One kind process that need gpu is euclidean distance that has matrix multiplication. But when i run the code, my gpu code seem slower than gpu. Here’s my code sir. I hope u can help me with the trouble sir.

This for cpu

This for gpu

I really hope u can find the trouble sir. Thank you very much sir. Hope u kindly reply my email asap.

Best regard, Dede

using ‘sir’ that much often would even look ridiculous for a recruit to a general,
here it is completly out of place…

That’s a lot of code. I’m not sure when I will have the time to take a closer look at this. In any case, you can assume that only computing the euclidean distance will hardly benefit from the GPU, as this is a clearly memory-bound task. (Also see Using Java with Nvidia GPU’s (cuda) - Stack Overflow , for example)