Googletest and CUDA?

Hello all,

Has anyone been successful integrating the googletest framework with CUDA-based code?

If Googletest doesn’t work with CUDA, does anyone know of a good alternative for unit testing CUDA-based code ?

Thanks,

Found this but have no experience with it https://phdp.github.io/posts/2017-01-30-cmake.html

You might want to checkout https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#unit-testing

Thank you. I will check the links out.

Have you had any issues? As far as I am aware it works just fine, although I might haven forgotten about initial teething problems.

It had some issues with compiling and linking with .cu file(s). However, all appears correct if I just create a library with the CUDA kernels in it and then have googletest call operations from there.