is there an alternative to the deprecated cuCtxAttach for driver api context reference counting?

Now that cuCtxAttach has been deprecated as of CUDA 4.0 (not that it worked properly before) is there an alternative to the deprecated cuCtxAttach for driver api context reference counting? Or do I have to perform all reference counting myself now?

Thanks