Ramgupta was the elder son of Samudragupta. Samudragupta was succeeded by Ramagupta according to some legends, but Chandragupta II killed him. It is also believed that during the tenure of Ramagupta, the Gupta empire was invaded by a powerful Shaka kin.
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.