Hi Dan
I think its best to ask them when you are nearing the end. I have found that discussing job options with my supervisor has been really helpful--but this is my experience, other people may have different advice on this. I feel that it all comes down to having a good relationship with the people who will be our references.
:-)
love satchi