Skip to content

Disable alias templates for stride views in HIP#4

Merged
yosh-matsuda merged 3 commits into
mainfrom
patch-deduction
Feb 13, 2026
Merged

Disable alias templates for stride views in HIP#4
yosh-matsuda merged 3 commits into
mainfrom
patch-deduction

Conversation

@acd1034
Copy link
Copy Markdown
Collaborator

@acd1034 acd1034 commented Feb 13, 2026

This pull request includes the following two fixes:

1. Disable alias templates for stride_view in HIP

since HIP does not support alias template argument deduction.

2. Remove overloads for const Range& in stride_adapter

stride_adapter no longer supports rvalue references (const lvalue reference is ok).

template <std::ranges::input_range T>
requires std::ranges::input_range<std::ranges::range_value_t<T>>
__global__ void kernel_stride(T array)
{
    for (auto& a : std::move(array) | views::grid_block_stride)
    //             ^~~~~~~~~~~~~~~~ compile error!
        for (auto& v : a | views::block_thread_stride) v = 1;
}

@acd1034 acd1034 marked this pull request as ready for review February 13, 2026 08:26
@acd1034 acd1034 requested a review from yosh-matsuda February 13, 2026 08:27
@yosh-matsuda yosh-matsuda merged commit cf5bf82 into main Feb 13, 2026
34 checks passed
@acd1034 acd1034 deleted the patch-deduction branch February 13, 2026 08:30
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.

2 participants