hwcontext_cuda: implement device creation