Skip to content

Unfair comparison of timing in one of the examples #1

Description

@rsnemmen

Dear Ben,

Nice examples, thanks for writing this!

The 030_timing.py code is doing an unfair comparison of the speed of a slow python loop versus a compiled C-OpenCL code. In this case, the C-kernel will always be faster. A more fair comparison would be to compare the speed of a C-code that performs the sum vs the OpenCL version executed on the GPU. Does this make sense?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions