Skip to content

Functional requirements API - #1326

Closed
gevtushenko wants to merge 1 commit into
NVIDIA:mainfrom
gevtushenko:enh-main/github/requirements
Closed

gevtushenko wants to merge 1 commit into
NVIDIA:mainfrom
gevtushenko:enh-main/github/requirements

Conversation

@gevtushenko

Copy link
Copy Markdown
Collaborator

Description

closes #1187

This is a prerequisite PR for deterministic scan. This PR provides an implementation and a design alternative for functional requirements API. Some of the functional requirements to the design below:

Design Requirements

Generic

The requirements API should not be limited to determinism guarantees. There are use cases where clients couldn't use scan because it's not work efficient (invokes operator more times than needed). Alternatively, one could imagine a functional requirement on the maximal temporary storage size. The design of functional requirements API should allow alternative functional requirements going forward.

Algorithm Specific

There might be algorithm-specific functional guarantees. For instance, in the for-each one could relax the requirement of not being able to copy elements or alternatively, the user can explicitly require that the function object is invoked on the original value. Alternatively, we scan might provide a guarantee on storing partial aggregates.

Library-Wide Requirements

Opposite to the previous requirement, we should provide library-wide requirements. It won't be a great experience if every algorithm provide it's own version of determinism requirements. This can get inconsistent quickly. Apart from that, when we start working on determinism API exposure in Thrust, it'll be mush easier to attach "run-to-run deterministic" tag to execution policy as opposed to attaching such a tag to each algorithm.

Type Safe

If given functional requirement can't be satisfied, the most sound approach would be to fail at compile time. If we introduce the functional requirement API for some algorithm, but then forget to handle, say, determinism requirements, it'll be a critical issue on the users end. I incline towards emitting a compile-time error if we see function requirement that's not known to a given algorithm.

Visible Defaults

The default deterministic API "parameter" should be defined on the algorithm basis. Apart from different algorithms exposing different guarantees (scan vs reduce), this would provide some visibility into algorithm behavior without looking deep into the implementation.

Runtime

The API should allow passing runtime parameters. Say you have N free bytes in memory and you request a given algorithm (reduce by key) to fit into this memory. This is a functional requirement which requires runtime parameter.

Design Alternative

Details on the design are given in the developer overview section of CUB docs. I'll briefly highlight user-facing API here. The terminology is the following. Algorithms provide guarantees, whereas users have requirements. Examples of the requirements API:

// default guarantees (see below)
reduce::sum(begin, end);

// run-to-run determinism is enforced
reduce::sum(begin, end, cub::require(cub::run_to_run_determinism));

// default determinism guarantees, memory footprint limit
reduce::sum(begin, end, cub::require(cub::max_memory_footprint(128_KB)));

// default determinism guarantees, memory footprint limit
reduce::sum(begin, end, cub::require(cub::max_memory_footprint(128_KB)));

// run-to-run deterministic with memory footprint limit
reduce::sum(begin, end, cub::require(cub::run_to_run_determinism,
                                     cub::max_memory_footprint(128_KB)));

The requirements belong to requirement categories. For instance, cub::run_to_run_determinism shares category with cub::nondeterminism. Only one requirement per category is allowed in the requirements list.

The requirements API allows:

  • stateful requirements
  • providing requirements in any order
  • not instantiating unrelated kernels
  • failing at compile time if requirements can’t be satisfied

The requirements API doesn’t allow:

  • multiple requirements from the same category in the requirements list
  • providing requirements from the category that is not supported by the algorithm

Users do not see passed this API. As far as users are concerned, we reserve the right to change default guarantees at any time. If there are functional requirements that are critical for users, those should be specified specifically.

All guarantees are ordered within the category. We reserve the right to select the implementation with stronger guarantees compared to what user requested. The remaining part of this section is only related to CUB developers.

Checklist

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

@gevtushenko
gevtushenko requested review from a team as code owners January 26, 2024 22:11
@gevtushenko gevtushenko mentioned this pull request Jan 26, 2024
1 task done
@gevtushenko gevtushenko changed the title Start working on requirements Functional requirements API Jan 26, 2024
Comment thread cub/cub/detail/meta.cuh Resolved
Comment thread cub/cub/detail/meta.cuh Resolved
Comment thread cub/cub/detail/requirements.cuh Resolved
Comment thread cub/cub/detail/requirements.cuh Resolved
Comment thread cub/cub/detail/requirements.cuh Resolved
Comment thread cub/cub/detail/requirements.cuh Resolved
Comment thread cub/docs/developer_overview.rst Resolved
Comment thread cub/docs/developer_overview.rst Outdated

template <class IteratorT, class ReguirementsT>
static typename ::cuda::std::enable_if<
cub::detail::guarantees::statically_satisfy_t<weak_guarantees_t, ReguirementsT>::value, // (1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo:

Suggested change
cub::detail::guarantees::statically_satisfy_t<weak_guarantees_t, ReguirementsT>::value, // (1)
cub::detail::guarantees::statically_satisfy_t<weak_guarantees_t, RequirementsT>::value, // (1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question: How does this approach interact with non-static requirements, e.g. memory footprint?

Comment thread cub/test/catch2_test_guarantees.cu Resolved
Comment thread cub/docs/developer_overview.rst Outdated
{
auto guarantees = cub::detail::requirements::mask(default_guarantees_t(), requirements); // (3)
auto max_footprint = cub::detail::requirements::get<detail::max_memory_footprint_t>(guarantees); // (4)
auto determinism = cub::detail::requirements::get<cub::detail::guarantees::run_to_run_deterministic_t>(guarantees); // (5)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capturing something that came up in the meeting -- it would be nicer for readability to have a query that doesn't spell out a specific guarantee, but rather the category. Maybe something like

enum determinism_t
{
  category, // Always the weakest
  nondeterministic,
  run_to_run_deterministic
};

// ...

namespace category {

// Never exposed outside of detail
using determinism = determinism_holder_t<determinism_t::category>;

}

// ...

auto determinism = cub::detail::requirements::get<cub::detail::category::determinism>(guarantees);

@miscco miscco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for working on this. I like the direction but have concerns about some implementation details.

  1. I am concerned about binary size implications. Passing the as variadic arguments has the potential to blow up. Also it is quite easy to accidentally pass multiple requirements instead of one.
  2. I find the metaprogramming overly complex. We want to unsure that only duplicates are within the requirements list. The trick with operator< is overly complex for that
  3. In general this has a lot of similarity to the property based system we have prototyped for <memory_resource> .
  4. I believe we should have a way to query the requirement categories for every algorithm and those should be unique for each algorithm.

Putting my thoughts together I believe we should define a algorithm_requirement for each algorithm and let it handle all the requirements.

I have shortly hacked something along those lines here https://godbolt.org/z/47YcaGx7M
Note that this currently rejects duplicated entries, but this is something we could easily add.

Comment thread cub/cub/detail/meta.cuh Resolved
Comment thread cub/cub/detail/meta.cuh Resolved
Comment thread cub/cub/detail/meta.cuh Outdated
{};

template <class T, class U>
struct statically_ordered_t<T, U, typename ::cuda::std::enable_if<true_t<T{} < U{} || U{} < T{}>::value>::type>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
struct statically_ordered_t<T, U, typename ::cuda::std::enable_if<true_t<T{} < U{} || U{} < T{}>::value>::type>
struct statically_ordered_t<T, U, ::cuda::std::__enable_if_t<true_t<T{} < U{} || U{} < T{}>::value>>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also I am a bit confused about the || here

Comment thread cub/cub/detail/meta.cuh Outdated
Comment on lines +105 to +108
struct statically_equal_t
: ::cuda::std::integral_constant<
bool,
statically_ordered_t<T, U>::value && !statically_less_t<T, U>::value && !statically_less_t<U, T>::value>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not covering the case where T{} == U{} which seems important

Comment thread cub/cub/detail/requirements.cuh Resolved
Comment thread cub/docs/developer_overview.rst Outdated
detail::max_memory_footprint_t>;

template <class IteratorT, class ReguirementsT = default_guarantees_t>
static auto sum(IteratorT begin, IteratorT end, ReguirementsT requirements = default_guarantees_t()) // (2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important: This interface is insufficiently constrained. We should ensure that we constrain the passed requirement to the right type. Otherwise this will give bas error messages to a user that passes something wrong

Comment thread cub/docs/developer_overview.rst Outdated
Comment on lines +845 to +846
auto max_footprint = cub::detail::requirements::get<detail::max_memory_footprint_t>(guarantees); // (4)
auto determinism = cub::detail::requirements::get<cub::detail::guarantees::run_to_run_deterministic_t>(guarantees); // (5)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Imporntant: We should align properly. Also we are inconsistent with the use of the namespaces

Comment thread cub/docs/developer_overview.rst Outdated
};

template <determinism_t L, determinism_t R>
_CCCL_HOST_DEVICE constexpr bool operator<(determinism_holder_t<L>, determinism_holder_t<R>)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important: We should not use internal macros in public code sampes

Suggested change
_CCCL_HOST_DEVICE constexpr bool operator<(determinism_holder_t<L>, determinism_holder_t<R>)
__host__ __device__ constexpr bool operator<(determinism_holder_t<L>, determinism_holder_t<R>)

Comment thread cub/docs/developer_overview.rst Outdated
auto guarantees = cub::detail::requirements::mask(default_guarantees_t(), requirements); // (3)
auto max_footprint = cub::detail::requirements::get<detail::max_memory_footprint_t>(guarantees); // (4)
auto determinism = cub::detail::requirements::get<cub::detail::guarantees::run_to_run_deterministic_t>(guarantees); // (5)
return reduce::sum(begin, end, determinism, max_footprint); // (6)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question: I am concerned about binary size here. What if a user calls this directly with switched guarantees?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That's fine. Requirements doesn't go deep into CUB. The worst thing that can happen is instantiating a few thin dispatch functions.

Comment thread cub/docs/developer_overview.rst Outdated

class scan
{
using weak_guarantees_t = cub::detail::guarantees::guarantees_t<cub::detail::guarantees::determinism_not_guaranteed_t,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important: I am missing a way to query the potential requirement categories of the algorithm.

@gevtushenko

Copy link
Copy Markdown
Collaborator Author

@pciolkosz suggested to extend the requirements API with guarantees API. The idea is that sometimes users require certain properties (already implemented in this PR), but sometimes, they provide guarantees. For instance, user might guarantee convergence of threads which would allow us to dispatch to more optimal implementation. We should consider this, since it's also useful in CUB. Apart from that, we should consider exposing API in cuda:: instead of cub::.

@jrhemstad

Copy link
Copy Markdown
Collaborator

For instance, user might guarantee convergence of threads which would allow us to dispatch to more optimal implementation.

After thinking about this a while, it occurs to me that guarantees are effectively the same as properties we developed for cuda::mr.

The way I currently think about it:

  • Requirements are a request from the user to the API, e.g., "Please give me run-to-run determinism"
  • Guarantees/Properties are a promise from to the user to the API, e.g., "I promise this resource allocates device accessible memory." or "I promise this thread group is converged."

@gevtushenko do you think the current properties machinery could be used for the guarantees (but not requirements)?

@gevtushenko
gevtushenko force-pushed the enh-main/github/requirements branch from c4b15c0 to a8ed166 Compare April 28, 2025 06:00
@github-actions

Copy link
Copy Markdown
Contributor
🟨 CI finished in 1h 20m: Pass: 96%/129 | Total: 2d 07h | Avg: 25m 48s | Max: 1h 13m | Hits: 92%/152052
  • 🟨 cub: Pass: 91%/47 | Total: 1d 14h | Avg: 48m 58s | Max: 1h 13m | Hits: 86%/53412

    🔍 cpu: amd64 🔍
      🔍 amd64              Pass:  91%/45  | Total:  1d 12h | Avg: 48m 37s | Max:  1h 13m | Hits:  86%/50904 
      🟩 arm64              Pass: 100%/2   | Total:  1h 53m | Avg: 56m 51s | Max: 57m 48s | Hits:  84%/2508  
    🔍 cudacxx_family: nvcc 🔍
      🟩 ClangCUDA          Pass: 100%/2   | Total:  1h 44m | Avg: 52m 24s | Max: 53m 04s | Hits:  84%/2166  
      🔍 nvcc               Pass:  91%/45  | Total:  1d 12h | Avg: 48m 49s | Max:  1h 13m | Hits:  86%/51246 
    🚨 cxx_family: MSVC 🚨
      🟩 Clang              Pass: 100%/19  | Total: 15h 39m | Avg: 49m 27s | Max: 56m 42s | Hits:  85%/23492 
      🟩 GCC                Pass: 100%/22  | Total: 16h 16m | Avg: 44m 22s | Max:  1h 03m | Hits:  87%/27602 
      🔥 MSVC               Pass:   0%/4   | Total:  4h 27m | Avg:  1h 06m | Max:  1h 13m
      🟩 NVHPC              Pass: 100%/2   | Total:  1h 59m | Avg: 59m 36s | Max: 59m 41s | Hits:  82%/2318  
    🔍 gpu: rtx2080 🔍
      🟩 h100               Pass: 100%/3   | Total:  1h 15m | Avg: 25m 12s | Max: 28m 40s | Hits:  94%/3762  
      🔍 rtx2080            Pass:  88%/36  | Total:  1d 08h | Avg: 54m 52s | Max:  1h 13m | Hits:  83%/39618 
      🟩 rtxa6000           Pass: 100%/8   | Total:  4h 10m | Avg: 31m 21s | Max: 51m 58s | Hits:  95%/10032 
    🔍 jobs: Build 🔍
      🔍 Build              Pass:  89%/39  | Total:  1d 11h | Avg: 53m 54s | Max:  1h 13m | Hits:  83%/43380 
      🟩 DeviceLaunch       Pass: 100%/1   | Total: 28m 07s | Avg: 28m 07s | Max: 28m 07s | Hits:  99%/1254  
      🟩 GraphCapture       Pass: 100%/1   | Total: 20m 25s | Avg: 20m 25s | Max: 20m 25s | Hits:  99%/1254  
      🟩 HostLaunch         Pass: 100%/3   | Total:  1h 22m | Avg: 27m 21s | Max: 28m 40s | Hits:  99%/3762  
      🟩 TestGPU            Pass: 100%/3   | Total:  1h 08m | Avg: 22m 54s | Max: 23m 16s | Hits:  99%/3762  
    🟨 cudacxx
      🟩 ClangCUDA19        Pass: 100%/2   | Total:  1h 44m | Avg: 52m 24s | Max: 53m 04s | Hits:  84%/2166  
      🟨 nvcc12.0           Pass:  80%/5   | Total:  4h 31m | Avg: 54m 21s | Max:  1h 01m | Hits:  84%/5024  
      🟨 nvcc12.8           Pass:  92%/40  | Total:  1d 08h | Avg: 48m 08s | Max:  1h 13m | Hits:  86%/46222 
    🟨 cxx
      🟩 Clang14            Pass: 100%/4   | Total:  3h 25m | Avg: 51m 27s | Max: 53m 14s | Hits:  84%/5024  
      🟩 Clang15            Pass: 100%/2   | Total:  1h 42m | Avg: 51m 18s | Max: 52m 31s | Hits:  84%/2508  
      🟩 Clang16            Pass: 100%/2   | Total:  1h 49m | Avg: 54m 56s | Max: 56m 42s | Hits:  84%/2508  
      🟩 Clang17            Pass: 100%/2   | Total:  1h 41m | Avg: 50m 31s | Max: 50m 44s | Hits:  84%/2508  
      🟩 Clang18            Pass: 100%/2   | Total:  1h 42m | Avg: 51m 11s | Max: 53m 25s | Hits:  84%/2508  
      🟩 Clang19            Pass: 100%/7   | Total:  5h 17m | Avg: 45m 24s | Max: 56m 12s | Hits:  88%/8436  
      🟩 GCC7               Pass: 100%/2   | Total:  1h 44m | Avg: 52m 24s | Max: 53m 54s | Hits:  83%/2512  
      🟩 GCC8               Pass: 100%/1   | Total: 51m 27s | Avg: 51m 27s | Max: 51m 27s | Hits:  83%/1256  
      🟩 GCC9               Pass: 100%/2   | Total:  1h 42m | Avg: 51m 28s | Max: 52m 54s | Hits:  83%/2512  
      🟩 GCC10              Pass: 100%/2   | Total:  1h 47m | Avg: 53m 31s | Max: 56m 13s | Hits:  83%/2512  
      🟩 GCC11              Pass: 100%/2   | Total:  1h 39m | Avg: 49m 59s | Max: 50m 12s | Hits:  83%/2508  
      🟩 GCC12              Pass: 100%/2   | Total:  1h 54m | Avg: 57m 07s | Max:  1h 03m | Hits:  72%/2508  
      🟩 GCC13              Pass: 100%/11  | Total:  6h 35m | Avg: 35m 58s | Max:  1h 00m | Hits:  92%/13794 
      🟥 MSVC14.29          Pass:   0%/2   | Total:  2h 07m | Avg:  1h 03m | Max:  1h 05m
      🟥 MSVC14.42          Pass:   0%/2   | Total:  2h 19m | Avg:  1h 09m | Max:  1h 13m
      🟩 NVHPC25.3          Pass: 100%/2   | Total:  1h 59m | Avg: 59m 36s | Max: 59m 41s | Hits:  82%/2318  
    🟨 ctk
      🟨 12.0               Pass:  80%/5   | Total:  4h 31m | Avg: 54m 21s | Max:  1h 01m | Hits:  84%/5024  
      🟨 12.8               Pass:  92%/42  | Total:  1d 09h | Avg: 48m 20s | Max:  1h 13m | Hits:  86%/48388 
    🟩 sm
      🟩 90                 Pass: 100%/3   | Total:  1h 15m | Avg: 25m 12s | Max: 28m 40s | Hits:  94%/3762  
      🟩 90;90a;100         Pass: 100%/1   | Total:  1h 00m | Avg:  1h 00m | Max:  1h 00m | Hits:  83%/1254  
    🟨 std
      🟨 17                 Pass:  85%/21  | Total: 19h 22m | Avg: 55m 20s | Max:  1h 13m | Hits:  82%/22322 
      🟨 20                 Pass:  96%/26  | Total: 18h 59m | Avg: 43m 50s | Max:  1h 06m | Hits:  89%/31090 
    
  • 🟩 thrust: Pass: 100%/47 | Total: 13h 06m | Avg: 16m 44s | Max: 42m 08s | Hits: 95%/83698

    🟩 cmake_options
      🟩 -DTHRUST_DISPATCH_TYPE=Force32bit Pass: 100%/2   | Total: 24m 41s | Avg: 12m 20s | Max: 13m 08s | Hits:  97%/3564  
    🟩 cpu
      🟩 amd64              Pass: 100%/45  | Total: 12h 38m | Avg: 16m 51s | Max: 42m 08s | Hits:  95%/80135 
      🟩 arm64              Pass: 100%/2   | Total: 27m 40s | Avg: 13m 50s | Max: 14m 41s | Hits:  94%/3563  
    🟩 ctk
      🟩 12.0               Pass: 100%/5   | Total:  1h 29m | Avg: 17m 49s | Max: 30m 14s | Hits:  94%/8901  
      🟩 12.8               Pass: 100%/42  | Total: 11h 37m | Avg: 16m 36s | Max: 42m 08s | Hits:  95%/74797 
    🟩 cudacxx
      🟩 ClangCUDA19        Pass: 100%/2   | Total: 26m 22s | Avg: 13m 11s | Max: 13m 37s | Hits:  94%/3562  
      🟩 nvcc12.0           Pass: 100%/5   | Total:  1h 29m | Avg: 17m 49s | Max: 30m 14s | Hits:  94%/8901  
      🟩 nvcc12.8           Pass: 100%/40  | Total: 11h 11m | Avg: 16m 46s | Max: 42m 08s | Hits:  95%/71235 
    🟩 cudacxx_family
      🟩 ClangCUDA          Pass: 100%/2   | Total: 26m 22s | Avg: 13m 11s | Max: 13m 37s | Hits:  94%/3562  
      🟩 nvcc               Pass: 100%/45  | Total: 12h 40m | Avg: 16m 53s | Max: 42m 08s | Hits:  95%/80136 
    🟩 cxx
      🟩 Clang14            Pass: 100%/4   | Total: 58m 33s | Avg: 14m 38s | Max: 15m 22s | Hits:  94%/7124  
      🟩 Clang15            Pass: 100%/2   | Total: 28m 03s | Avg: 14m 01s | Max: 14m 04s | Hits:  94%/3562  
      🟩 Clang16            Pass: 100%/2   | Total: 27m 29s | Avg: 13m 44s | Max: 13m 51s | Hits:  94%/3562  
      🟩 Clang17            Pass: 100%/2   | Total: 28m 04s | Avg: 14m 02s | Max: 14m 03s | Hits:  94%/3562  
      🟩 Clang18            Pass: 100%/2   | Total: 28m 35s | Avg: 14m 17s | Max: 15m 14s | Hits:  94%/3562  
      🟩 Clang19            Pass: 100%/7   | Total:  1h 27m | Avg: 12m 30s | Max: 14m 57s | Hits:  96%/12467 
      🟩 GCC7               Pass: 100%/2   | Total: 31m 17s | Avg: 15m 38s | Max: 16m 15s | Hits:  94%/3564  
      🟩 GCC8               Pass: 100%/1   | Total: 15m 33s | Avg: 15m 33s | Max: 15m 33s | Hits:  94%/1782  
      🟩 GCC9               Pass: 100%/2   | Total: 31m 16s | Avg: 15m 38s | Max: 16m 01s | Hits:  94%/3564  
      🟩 GCC10              Pass: 100%/2   | Total: 28m 10s | Avg: 14m 05s | Max: 14m 24s | Hits:  94%/3564  
      🟩 GCC11              Pass: 100%/2   | Total: 29m 05s | Avg: 14m 32s | Max: 14m 55s | Hits:  94%/3564  
      🟩 GCC12              Pass: 100%/2   | Total: 30m 27s | Avg: 15m 13s | Max: 15m 30s | Hits:  94%/3564  
      🟩 GCC13              Pass: 100%/10  | Total:  2h 05m | Avg: 12m 30s | Max: 16m 22s | Hits:  96%/17820 
      🟩 MSVC14.29          Pass: 100%/2   | Total:  1h 02m | Avg: 31m 13s | Max: 32m 12s | Hits:  93%/3550  
      🟩 MSVC14.42          Pass: 100%/3   | Total:  1h 34m | Avg: 31m 20s | Max: 34m 02s | Hits:  95%/5325  
      🟩 NVHPC25.3          Pass: 100%/2   | Total:  1h 21m | Avg: 40m 31s | Max: 42m 08s | Hits:  93%/3562  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/19  | Total:  4h 18m | Avg: 13m 35s | Max: 15m 22s | Hits:  95%/33839 
      🟩 GCC                Pass: 100%/21  | Total:  4h 50m | Avg: 13m 51s | Max: 16m 22s | Hits:  95%/37422 
      🟩 MSVC               Pass: 100%/5   | Total:  2h 36m | Avg: 31m 17s | Max: 34m 02s | Hits:  94%/8875  
      🟩 NVHPC              Pass: 100%/2   | Total:  1h 21m | Avg: 40m 31s | Max: 42m 08s | Hits:  93%/3562  
    🟩 gpu
      🟩 h100               Pass: 100%/2   | Total: 19m 44s | Avg:  9m 52s | Max: 11m 27s | Hits:  97%/3564  
      🟩 rtx2080            Pass: 100%/35  | Total: 10h 12m | Avg: 17m 30s | Max: 42m 08s | Hits:  94%/62331 
      🟩 rtx4090            Pass: 100%/10  | Total:  2h 33m | Avg: 15m 23s | Max: 33m 30s | Hits:  97%/17803 
    🟩 jobs
      🟩 Build              Pass: 100%/40  | Total: 11h 38m | Avg: 17m 28s | Max: 42m 08s | Hits:  94%/71233 
      🟩 TestCPU            Pass: 100%/3   | Total: 42m 36s | Avg: 14m 12s | Max: 26m 28s | Hits:  99%/5338  
      🟩 TestGPU            Pass: 100%/4   | Total: 45m 06s | Avg: 11m 16s | Max: 11m 46s | Hits:  99%/7127  
    🟩 sm
      🟩 90                 Pass: 100%/2   | Total: 19m 44s | Avg:  9m 52s | Max: 11m 27s | Hits:  97%/3564  
      🟩 90;90a;100         Pass: 100%/1   | Total: 13m 45s | Avg: 13m 45s | Max: 13m 45s | Hits:  94%/1782  
    🟩 std
      🟩 17                 Pass: 100%/21  | Total:  6h 30m | Avg: 18m 34s | Max: 38m 54s | Hits:  94%/37392 
      🟩 20                 Pass: 100%/24  | Total:  6h 11m | Avg: 15m 29s | Max: 42m 08s | Hits:  96%/42742 
    
  • 🟩 cudax: Pass: 100%/26 | Total: 2h 33m | Avg: 5m 55s | Max: 18m 46s | Hits: 99%/14616

    🟩 cpu
      🟩 amd64              Pass: 100%/22  | Total:  2h 20m | Avg:  6m 22s | Max: 18m 46s | Hits:  98%/12276 
      🟩 arm64              Pass: 100%/4   | Total: 13m 51s | Avg:  3m 27s | Max:  3m 31s | Hits:  99%/2340  
    🟩 ctk
      🟩 12.0               Pass: 100%/3   | Total: 16m 45s | Avg:  5m 35s | Max:  9m 40s | Hits:  98%/1460  
      🟩 12.8               Pass: 100%/23  | Total:  2h 17m | Avg:  5m 57s | Max: 18m 46s | Hits:  99%/13156 
    🟩 cudacxx
      🟩 nvcc12.0           Pass: 100%/3   | Total: 16m 45s | Avg:  5m 35s | Max:  9m 40s | Hits:  98%/1460  
      🟩 nvcc12.8           Pass: 100%/23  | Total:  2h 17m | Avg:  5m 57s | Max: 18m 46s | Hits:  99%/13156 
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/26  | Total:  2h 33m | Avg:  5m 55s | Max: 18m 46s | Hits:  99%/14616 
    🟩 cxx
      🟩 Clang14            Pass: 100%/2   | Total:  7m 26s | Avg:  3m 43s | Max:  3m 57s | Hits:  99%/1174  
      🟩 Clang15            Pass: 100%/1   | Total:  3m 50s | Avg:  3m 50s | Max:  3m 50s | Hits:  99%/585   
      🟩 Clang16            Pass: 100%/1   | Total:  3m 53s | Avg:  3m 53s | Max:  3m 53s | Hits:  99%/585   
      🟩 Clang17            Pass: 100%/1   | Total:  3m 49s | Avg:  3m 49s | Max:  3m 49s | Hits:  99%/585   
      🟩 Clang18            Pass: 100%/1   | Total:  4m 07s | Avg:  4m 07s | Max:  4m 07s | Hits:  99%/585   
      🟩 Clang19            Pass: 100%/4   | Total: 23m 24s | Avg:  5m 51s | Max: 12m 26s | Hits:  99%/2340  
      🟩 GCC10              Pass: 100%/2   | Total:  7m 29s | Avg:  3m 44s | Max:  3m 53s | Hits:  99%/1174  
      🟩 GCC11              Pass: 100%/1   | Total:  4m 03s | Avg:  4m 03s | Max:  4m 03s | Hits:  99%/585   
      🟩 GCC12              Pass: 100%/1   | Total:  3m 58s | Avg:  3m 58s | Max:  3m 58s | Hits:  99%/585   
      🟩 GCC13              Pass: 100%/8   | Total: 54m 57s | Avg:  6m 52s | Max: 18m 46s | Hits:  99%/4680  
      🟩 MSVC14.39          Pass: 100%/1   | Total:  9m 40s | Avg:  9m 40s | Max:  9m 40s | Hits:  95%/286   
      🟩 MSVC14.42          Pass: 100%/1   | Total: 10m 27s | Avg: 10m 27s | Max: 10m 27s | Hits:  95%/286   
      🟩 NVHPC25.3          Pass: 100%/2   | Total: 16m 55s | Avg:  8m 27s | Max:  8m 29s | Hits:  97%/1166  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/10  | Total: 46m 29s | Avg:  4m 38s | Max: 12m 26s | Hits:  99%/5854  
      🟩 GCC                Pass: 100%/12  | Total:  1h 10m | Avg:  5m 52s | Max: 18m 46s | Hits:  99%/7024  
      🟩 MSVC               Pass: 100%/2   | Total: 20m 07s | Avg: 10m 03s | Max: 10m 27s | Hits:  95%/572   
      🟩 NVHPC              Pass: 100%/2   | Total: 16m 55s | Avg:  8m 27s | Max:  8m 29s | Hits:  97%/1166  
    🟩 gpu
      🟩 h100               Pass: 100%/2   | Total: 17m 55s | Avg:  8m 57s | Max: 14m 16s | Hits:  99%/1170  
      🟩 rtx2080            Pass: 100%/24  | Total:  2h 16m | Avg:  5m 40s | Max: 18m 46s | Hits:  99%/13446 
    🟩 jobs
      🟩 Build              Pass: 100%/23  | Total:  1h 48m | Avg:  4m 43s | Max: 10m 27s | Hits:  98%/12861 
      🟩 Test               Pass: 100%/3   | Total: 45m 28s | Avg: 15m 09s | Max: 18m 46s | Hits:  99%/1755  
    🟩 sm
      🟩 90                 Pass: 100%/3   | Total: 21m 23s | Avg:  7m 07s | Max: 14m 16s | Hits:  99%/1755  
      🟩 90a                Pass: 100%/1   | Total:  3m 28s | Avg:  3m 28s | Max:  3m 28s | Hits:  99%/585   
    🟩 std
      🟩 17                 Pass: 100%/4   | Total: 18m 52s | Avg:  4m 43s | Max:  8m 29s | Hits:  98%/2338  
      🟩 20                 Pass: 100%/22  | Total:  2h 15m | Avg:  6m 08s | Max: 18m 46s | Hits:  99%/12278 
    
  • 🟩 stdpar: Pass: 100%/4 | Total: 18m 34s | Avg: 4m 38s | Max: 5m 40s

    🟩 cpu
      🟩 amd64              Pass: 100%/2   | Total: 10m 57s | Avg:  5m 28s | Max:  5m 40s
      🟩 arm64              Pass: 100%/2   | Total:  7m 37s | Avg:  3m 48s | Max:  3m 52s
    🟩 ctk
      🟩 12.8               Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 cudacxx
      🟩 nvcc12.8           Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 cxx
      🟩 NVHPC25.3          Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 cxx_family
      🟩 NVHPC              Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 gpu
      🟩 rtx2080            Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 jobs
      🟩 Build              Pass: 100%/4   | Total: 18m 34s | Avg:  4m 38s | Max:  5m 40s
    🟩 std
      🟩 17                 Pass: 100%/2   | Total:  9m 25s | Avg:  4m 42s | Max:  5m 40s
      🟩 20                 Pass: 100%/2   | Total:  9m 09s | Avg:  4m 34s | Max:  5m 17s
    
  • 🟩 python: Pass: 100%/3 | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s

    🟩 cpu
      🟩 amd64              Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 ctk
      🟩 12.8               Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 cudacxx
      🟩 nvcc12.8           Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 cxx
      🟩 GCC13              Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 cxx_family
      🟩 GCC                Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 gpu
      🟩 rtx2080            Pass: 100%/3   | Total: 32m 11s | Avg: 10m 43s | Max: 16m 29s
    🟩 jobs
      🟩 cuda.cccl          Pass: 100%/1   | Total:  8m 56s | Avg:  8m 56s | Max:  8m 56s
      🟩 cuda.cooperative   Pass: 100%/1   | Total: 16m 29s | Avg: 16m 29s | Max: 16m 29s
      🟩 cuda.parallel      Pass: 100%/1   | Total:  6m 46s | Avg:  6m 46s | Max:  6m 46s
    
  • 🟩 cccl_c_parallel: Pass: 100%/2 | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits: 98%/326

    🟩 cpu
      🟩 amd64              Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 ctk
      🟩 12.8               Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 cudacxx
      🟩 nvcc12.8           Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 cxx
      🟩 GCC13              Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 cxx_family
      🟩 GCC                Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 gpu
      🟩 rtx2080            Pass: 100%/2   | Total: 35m 13s | Avg: 17m 36s | Max: 32m 36s | Hits:  98%/326   
    🟩 jobs
      🟩 Build              Pass: 100%/1   | Total:  2m 37s | Avg:  2m 37s | Max:  2m 37s | Hits:  98%/163   
      🟩 Test               Pass: 100%/1   | Total: 32m 36s | Avg: 32m 36s | Max: 32m 36s | Hits:  98%/163   
    

👃 Inspect Changes

Modifications in project?

Project
CCCL Infrastructure
libcu++
+/- CUB
Thrust
CUDA Experimental
stdpar
python
CCCL C Parallel Library
Catch2Helper

Modifications in project or dependencies?

Project
CCCL Infrastructure
libcu++
+/- CUB
+/- Thrust
+/- CUDA Experimental
+/- stdpar
+/- python
+/- CCCL C Parallel Library
+/- Catch2Helper

🏃‍ Runner counts (total jobs: 129)

# Runner
89 linux-amd64-cpu16
11 windows-amd64-cpu16
10 linux-arm64-cpu16
6 linux-amd64-gpu-rtx2080-latest-1
6 linux-amd64-gpu-rtxa6000-latest-1
4 linux-amd64-gpu-h100-latest-1
3 linux-amd64-gpu-rtx4090-latest-1

@gevtushenko

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #4877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Initial investigation into API design for user-specified determinism guarantees in Thrust and PSTL

4 participants