Shuffle all cards from your graveyard into your library. Target player mills that many cards.
Psychic Spiral won’t be shuffled into your library, and it won’t be counted when determining how many cards the target player puts into their graveyard. It will be put into your graveyard after you follow its instructions.
If you cast Psychic Spiral when there are no cards in your graveyard, you’ll still shuffle your library.