There is google’s highway, that provides an abstraction layer. It is used by NumPy.