changed to not use cuda.autoinit