Gilgamesh was written ~2000 years after PIE's theorized origins. It actually lines up well with the Rigveda, one of the oldest surviving Vedic Sanskrit texts.
But from a more conventional perspective, the epic of Gilgamesh is much, much, much older than the Rigveda.
I should check out the Rigveda.