Use halloc for cuda kernel objects.