'Returns a configured kernel for 1D kernel of given number of tasks
``ntasks``.
This assumes that:
- the kernel 1-to-1 maps global thread id ``cuda.grid(1)`` to tasks.
- the kernel must check if the thread id is valid.'

def forall(self, ntasks, tpb=0, stream=0, sharedmem=0):

    return ForAll(self, ntasks, tpb=tpb, stream=stream, sharedmem=sharedmem)
