Fix CUDA direct loop to process elem [offset:offset+size]