‘The whole’ means a complete thing made of several parts, while ‘the whole of’ means all of something.
Here is when to use ‘the whole’ and when to use ‘the whole of’:
The whole
We use ‘the whole’ with common nouns and to talk about quantity.
Sometimes ‘the whole’ can also be a noun.
The whole of
We usually use ‘the whole of’ with non-physical objects and with proper nouns (names).
Sometimes they can be, but not always. According to Practical English Usage by Michael Swan, before proper nouns (names) and pronouns we should use the whole of, and not whole. Example: The whole of London was under snow. (not whole London)
Examples of ‘whole’:
Examples of ‘the whole of’:
Discussion