Skip to content

Incorrect implementation of PTRCHASE #32

Description

@joaquin-ferrerc-um-es

In the implementation for PTHREADS (I'm not sure about the rest, I haven't checked, although I assume it's the same), the implementation of the PTRCHASE kernel is incorrect. The “start” variable is used to evaluate the loop termination condition. This variable is modified in each iteration of the loop. Therefore, the number of iterations of each thread is arbitrary, and not the one specified when launching the kernel. In fact, many threads may terminate much earlier than others, without executing the specified number of iterations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions