bytedeco / sample-projects

Sample project files for JavaCPP, JavaCPP Presets, and JavaCV
218 stars 173 forks source link

added CUDA example #29

Closed ka-ba closed 6 years ago

saudet commented 6 years ago

Thanks! Let's also add a small pom.xml like this one to complete this? https://github.com/bytedeco/javacpp-presets/tree/master/cuda#the-pomxml-build-file

ka-ba commented 6 years ago

second commit is not yet tested on a machine with CUDA-HW - will have to wait till Monday

saudet commented 6 years ago

It sort of works on my machine:

result incorrect at position 999997: expected -734379956, but got -733379958
ka-ba commented 6 years ago

OK, working as expected. ;) from the readme: "There's a deliberate error introduced into one of the input vectors to show that the check really checks and that all other values are as expected." from the code: "a[N-3]=1; // introduce error to be found; to show that check works" Thanks for testing! :+1: