Skip to content

SPECTGPU:starting point; created SPECTGPU_projector folder and schel…#1687

Draft
danieldeidda wants to merge 9 commits intoUCL:masterfrom
danieldeidda:GPUSPECT
Draft

SPECTGPU:starting point; created SPECTGPU_projector folder and schel…#1687
danieldeidda wants to merge 9 commits intoUCL:masterfrom
danieldeidda:GPUSPECT

Conversation

@danieldeidda
Copy link
Copy Markdown
Collaborator

…eton classe, atm a lot of copy from niftyGPU

Changes in this pull request

Testing performed

Related issues

Checklist before requesting a review

  • [] I have performed a self-review of my code
  • [] I have added docstrings/doxygen in line with the guidance in the developer guide
  • [] I have implemented unit tests that cover any new or modified functionality (if applicable)
  • [] The code builds and runs on my machine
  • [] documentation/release_XXX.md has been updated with any functionality change (if applicable)

Contribution Notes

Please tick the following:

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in STIR (the Work) under the terms and conditions of the Apache-2.0 License.
  • I (or my institution) have signed the STIR Contribution License Agreement (not required for small changes).

danieldeidda and others added 9 commits March 4, 2026 17:01
…calls the kernels; we need to double check that the kernel can write into the sino but probably we need to dodevice_to_host(stir_sino,cuda_array_created_by_forward)
… that calls the kernels; we need to double check that the kernel can write into the sino but probably we need to dodevice_to_host(stir_sino,cuda_array_created_by_forward)
Comment on lines +123 to +124
float* dev_image;
cudaMalloc(&dev_image, stir_image.size_all() * sizeof(float));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use

CuVec<float> dev_image(stir_image.size_all());

then you don't need to free at the end. If so, you can pass it to a kernel as dev_image.data().

Also, you probably want to have this out of the loop.

@KrisThielemans KrisThielemans marked this pull request as draft March 23, 2026 15:46
@KrisThielemans KrisThielemans self-assigned this Mar 23, 2026
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.

4 participants