fix bug where two cuda contexts would exist if cuda runtime was used
before cudacompile was first called.