gdev: fixed null pointer reference when the fermi
cuda: update Makefile
cuda: merge master, and update Makefile
Merge remote-tracking branch 'origin/gdev-axe'

Conflicts:
	cuda/libucuda/Makefile
Merge remote-tracking branch 'origin/gdev-axe'
cuda: detect target architecture in PTX code
Merge remote-tracking branch 'origin/gdev-axe'