An integrated photonic processor, based on phase-change-material memory arrays and chip-based optical frequency combs, which can operate at speeds of trillions of multiply-accumulate (MAC) operations per second, is demonstrated.