Viharas were for the purpose of living, Chaityas were assemblies for the purpose of discussions. Further, Chaityas were with Stupas, Viharas did not have stupas.
Fa-hein, the first Chinese Buddhist traveller and monk, came to India during the reign of Gupta emperor Chandragupta II and wrote the book “Si- Yu-Ki” that gives the detail account of the political and social condition of that time.