PhD Thesis: Transparent Spatial Sharing of Multiple and Heterogeneous Accelerators