value_init and swap work on nvidia gpu's