1. In a computing environment, a method comprising: detecting barriers in a bulk synchronous program, each barrier delimiting supersteps; and compiling the supersteps into stream code kernels for execution by the graphics processing unit.
1. In a computing environment, a method comprising: detecting barriers in a bulk synchronous program, each barrier delimiting supersteps; and compiling the supersteps into stream code kernels for execution by the graphics processing unit. 2. The method of claim 1 wherein compiling the supersteps comprises adding code to save thread context at each barrier.