C++ serialization library to use with CUDA

Is there any known C++ serialization library which could be used with CUDA?

Something which could:

  1. Serialize back and forth objects to binary format
  2. Which could be used in kernel to serialize objects in CUDA and on host to do the same on CPU

Preferably, something lightweight and allowing serialization in binary and optionally (for debugging purposes) in text mode.

Goals:

  1. Save/Load to disk in host code as the current system state
  2. Serialize to pass shared data between kernel and host