Skip to content

Distance tracking on stack causes OpenMP traversal to fail #43

Description

@Waqar-ukaea

PR #28 added distance tracking on stack to the ray traversal kernels. When trying to use cuBQL in our own downstream app (XDG) which is making use of the OpenMP BVH builder and ShrinkingRayTraversal template the changes made in #28 cause rays that would previously return correct hits to now return misses.

Disabling the distance tracking by setting this line to #define CUBQL_DIST_STACK 0 resolves the issue and i get the expected successful ray hits again. I'm not sure about how to fix it for OpenMP traversal as clearly there is no issue when using the CUDA backend. But in the absence of an actual fix, perhaps the ability to toggle on or off CUBQL_DIST_STACK would be helpful to ensure that OpenMP runtimes can still work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions