Framework for Parallel Computing on Graphics Accelerators