Sperm Wash Question

When an IUI is done, do they take a male’s entire sperm sample and wash it? Or do they take a portion of that sample to wash?