Skip to content

Cubql auto upload array - #16

Open
Waqar-ukaea wants to merge 22 commits into
cuBQLfrom
cubql-auto-upload-array
Open

Cubql auto upload array#16
Waqar-ukaea wants to merge 22 commits into
cuBQLfrom
cubql-auto-upload-array

Conversation

@Waqar-ukaea

@Waqar-ukaea Waqar-ukaea commented May 15, 2026

Copy link
Copy Markdown
Owner

This internal PR is for introducing a version of DPRT's AutoUploadArray which is an RAII container for handling data which needs to be copied from host to device with omp_target. The obious benefits being:

  • Cutting out the omp_target_alloc() and omp_target_memcpy()
  • Automatically calling omp_target_free() as part of its destructor to avoid requiring explicit lifetime management

I'm not certain how I feel about this as an addition just yet. Whilst it does cleanup some of the repeated code it almost feels too complicated for our usecase in XDG. In some ways I kind of prefer the more explicit omp_target calls. I will have a think about whether or not I want to make use of these and keep this PR open as a reminder. They may actually become more useful later on as I make a start on implementing a two-level traversal scheme.

…ndling is performed at intersection time

Also had to change the create_global_*_trees stubs for cuBQL to return a warning rather than fatal_error
Cross check verified to produce consistent results across all three ray tracers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant