We have some algorithms optimized using Cuda that we would like to unit test in our automated build system running TeamCity. Unfortunately the tests fail on the TeamCity agent because cudaGetDeviceCount reports that there are no capable devices. I assume it happens because the TeamCity agent cannot access the display but I only want to do computations in the background and no rendering to screen.
Any sugestions? Searching for unit test+Cuda+TeamCity does not yield anything usefull.