Global memory addressrange

Is there any possibility to get the first address of global mem.
The intension is to create a memtest application for cuda devices to check memory for leaks.

Any suggestions?