Shared gpu on cpu

This probably break old pickled files. I'll try to fix this tomorrow.