Moved compute_accel() to gpu as single threaded kernel.