The MapReduce operation with PyCUDA