compile ok, with cuda 5.5 and gcc 4.6 (gcc 4.8 not compatible)