Skip to content

[STF] Rename getStream into get stream#7946

Draft
caugonnet wants to merge 15 commits intoNVIDIA:mainfrom
caugonnet:stf_rename_get_stream
Draft

[STF] Rename getStream into get stream#7946
caugonnet wants to merge 15 commits intoNVIDIA:mainfrom
caugonnet:stf_rename_get_stream

Conversation

@caugonnet
Copy link
Contributor

Description

Use a consistent naming scheme

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@caugonnet caugonnet self-assigned this Mar 9, 2026
@caugonnet caugonnet added stf Sequential Task Flow programming model places labels Mar 9, 2026
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 9, 2026
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Mar 9, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Mar 9, 2026
andralex added 2 commits March 9, 2026 22:08
- Refactor data_place::to_string() to use cascaded ternary operators
- Replace assert() calls with _CCCL_ASSERT for consistent diagnostics
- Remove exec_place::impl::create_stream() and inline into stream_pool::next()
- Simplify exec_place::operator->* to use exec_place_guard RAII pattern
- Minor cleanup: remove redundant parentheses, reorder operator< logic
@andralex
Copy link
Contributor

/ok to test

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Mar 10, 2026

/ok to test

@andralex, there was an error processing your request: E1

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/

@andralex
Copy link
Contributor

/ok to test 4e1b59b


void* allocate(::std::ptrdiff_t, cudaStream_t) const override
{
throw ::std::logic_error("Cannot allocate from device_auto data_place directly");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: some methods throw, some other return NOT IMPLEMENTED

*/
virtual bool equals(const data_place_interface& other) const
{
return typeid(*this) == typeid(other) && get_device_ordinal() == other.get_device_ordinal();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this looks like a remains of having the base data_place == data_place_device ? (this was in exec_place_device), maybe this should be a pure virtual = 0 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

@github-actions
Copy link
Contributor

😬 CI Workflow Results

🟥 Finished in 36m 56s: Pass: 93%/48 | Total: 15h 01m | Max: 28m 28s | Hits: 59%/21875

See results here.

Copy link
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

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

Can you rebase?

there are a lot of unrelated changes

Comment on lines +113 to +120
bool allocation_is_stream_ordered() const override
{
return true;
}

// Provide affine exec place implementation for data_place::affine_exec_place()
::std::shared_ptr<void> get_affine_exec_impl() const override;

Copy link
Contributor

Choose a reason for hiding this comment

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

Is that a merge conflict?

// under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

2022-2026

…VIDIA#7926)

* prepare tests for var segments

* adds tests for small variable-size segments

* restores tests for types

* reverts now-superfluous segment fixup test code

* variable segment size tests

* split up test tus, restore utils

* adds tests for variable-size keys

* fixes tu splitup

* style fix
@andralex
Copy link
Contributor

Can you rebase?

there are a lot of unrelated changes

I thought I'd make your life easier so I put the refactoring in #7976 for easy review. Will ping you when ready for review. Thanks!

@andralex andralex force-pushed the stf_rename_get_stream branch from 4e1b59b to b30ffa3 Compare March 10, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

places stf Sequential Task Flow programming model

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants