Nvidia has not revealed when driver updates will end for these cards, but I think we can look at a previous generation for an idea of the timeline we can expect. CUDA support for Kepler ...
AMD has since not clarified what the timeline for support for the consumer cards will look like. ROCm, or Radeon Open Compute Ecosystem, is AMD's open-source answer to Nvidia's CUDA platform.