Skip to content

A bug in slide example code #1

Description

@cscjlan

d_a[tid] = s_a[BLOCKSIZE-tid]; /* safe to write out array in reverse order */

There should be a minus one here.
d_a[tid] = s_a[BLOCKSIZE - 1 - tid]; /* safe to write out array in reverse order */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions