Move Assert to the GPU in both back-end.