High-density Integrated Photonic Tensor Processing Unit with a Matrix Multiply Compile