Makespan computation for GPU threads running on a streaming multiprocessor