Skip to content

Move Only Events#206

Open
MrBurmark wants to merge 52 commits into
mainfrom
feature/burmark1/owning_events
Open

Move Only Events#206
MrBurmark wants to merge 52 commits into
mainfrom
feature/burmark1/owning_events

Conversation

@MrBurmark

@MrBurmark MrBurmark commented Jun 3, 2026

Copy link
Copy Markdown
Member

Make typed events move only so they can own the native events that they contain and destroy those native events properly. Erased events (Event) are not move only and still have reference semantics as they are implemented with a shared_ptr.

This also other things I found along the way. For example some functions only took the erased version of a resource or event so I added an overload for the typed version for performance. I also updated the organization of some of the type traits and concepts used by the resources/events. I also updated the tests to test more things.

Comment thread include/camp/resource/host.hpp Outdated
Comment thread include/camp/resource/event.hpp
Comment thread include/camp/resource.hpp
Comment thread test/resource.cpp Outdated
@MrBurmark MrBurmark requested a review from adayton1 June 4, 2026 15:40

#include <cuda_runtime.h>

#include <cstddef>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What does cstddef bring that you need?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You might be able to remove it in several headers.

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.

3 participants