Hardware-agnostic Computation for Large-scale Knowledge Graph Embeddings