Run-time Compilation And Dynamic Memory Use Analysis For GPUs