1. A computer readable storage medium storing computer-executable instructions that, when executed by a computer system, cause the computer system to perform a method comprising: generating a compute device object and a resource view object in response to data parallel source code, the compute device object specifying a device level and the resource view object specifying a resource level; and executing a data parallel algorithm of the data parallel source code using a compute node corresponding to the device level in response to an annotation of the data parallel algorithm indicating that the data parallel algorithm is compatible with the resource level.