Skip to content

Add cmake option for CAMP_USE_PLATFORM_DEFAULT_STREAM#205

Open
helloworld922 wants to merge 8 commits into
llnl:mainfrom
helloworld922:feature/default_stream
Open

Add cmake option for CAMP_USE_PLATFORM_DEFAULT_STREAM#205
helloworld922 wants to merge 8 commits into
llnl:mainfrom
helloworld922:feature/default_stream

Conversation

@helloworld922

Copy link
Copy Markdown

No description provided.

Riyaz Haque and others added 2 commits May 29, 2026 10:57
Changes to the cmake option for default stream
Comment thread CMakeLists.txt Outdated
@artv3

artv3 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Used internally: https://github.com/llnl/camp/blob/56b194f3ea3d0e9d6e2f236de39a4886063e4968/include/camp/resource/hip.hpp#L187C5-L187C37

@helloworld922 , is the issue that we do not have a CMAKE variable to define it?

@helloworld922

Copy link
Copy Markdown
Author

Yes, the define is supposed to be user defined if they want to use default streams, but unless you properly forward the compiler define to all downstream dependencies you either end up with an ODR violation and/or not having the correct behavior of which stream kernels are being run on. This just makes sure that the define is baked into the installed RAJA headers so everyone picks up a consistent definition.

Comment thread include/camp/config.in.hpp
MrBurmark
MrBurmark previously approved these changes Jun 23, 2026
adayton1
adayton1 previously approved these changes Jun 23, 2026
Comment thread include/camp/config.in.hpp
@helloworld922 helloworld922 dismissed stale reviews from adayton1 and MrBurmark via 100158d June 23, 2026 17:52
rhornung67
rhornung67 previously approved these changes Jun 23, 2026
Comment thread include/camp/config.in.hpp
@adayton1 adayton1 requested a review from rhornung67 June 23, 2026 19:54
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.

7 participants