'Pops this context off the current CPU thread. Note that this context must
be at the top of the context stack, otherwise an error will occur.'

def pop(self):

    popped = drvapi.cu_context()
    driver.cuCtxPopCurrent(byref(popped))
    assert (popped.value == self.handle.value)
