New code for FANN GPU.