Device present

What is the most reliable way to find out if there is CUDA compatible hardware currently present in the host configuration? Would the CUT_DEVICE_INIT() be suitable for this or are there better options at hand? (Please note that im not interested in determining whether the user is running in emulated or not)

I copied the code from CUT_DEVICE_INIT() and changed it slightly to suit my needs.