Allow import without the gpu back-end.

needed for docgen.