Add the option of using a pre-defined ambient context for cuda, and expose that option in the python interface.
Ensure that the fields for GpuContext will always be initialized.