Skip to content

Commit 2684f34

Browse files
authored
Merge pull request #1098 from NVIDIA/name-of-nvexec
name demangling for some nvexec sender types
2 parents ed3cff6 + d330d42 commit 2684f34

File tree

10 files changed

+75
-0
lines changed

10 files changed

+75
-0
lines changed

include/nvexec/stream/bulk.cuh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,15 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
371371
};
372372
};
373373
}
374+
375+
namespace stdexec::__detail {
376+
template <class SenderId, class Shape, class Fun>
377+
inline constexpr __mconst<
378+
nvexec::STDEXEC_STREAM_DETAIL_NS::bulk_sender_t<__name_of<__t<SenderId>>, Shape, Fun>>
379+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::bulk_sender_t<SenderId, Shape, Fun>>{};
380+
381+
template <class SenderId, class Shape, class Fun>
382+
inline constexpr __mconst<
383+
nvexec::STDEXEC_STREAM_DETAIL_NS::multi_gpu_bulk_sender_t<__name_of<__t<SenderId>>, Shape, Fun>>
384+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::multi_gpu_bulk_sender_t<SenderId, Shape, Fun>>{};
385+
}

include/nvexec/stream/ensure_started.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
359359
};
360360
};
361361
}
362+
363+
namespace stdexec::__detail {
364+
template <class SenderId>
365+
inline constexpr __mconst<
366+
nvexec::STDEXEC_STREAM_DETAIL_NS::ensure_started_sender_t<__name_of<__t<SenderId>>>>
367+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::ensure_started_sender_t<SenderId>>{};
368+
}

include/nvexec/stream/launch.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,10 @@ namespace nvexec {
179179
inline constexpr STDEXEC_STREAM_DETAIL_NS::launch_t launch{};
180180

181181
} // namespace nvexec
182+
183+
namespace stdexec::__detail {
184+
template <class SenderId, class Fun>
185+
inline constexpr __mconst<
186+
nvexec::STDEXEC_STREAM_DETAIL_NS::launch_sender_t<__name_of<__t<SenderId>>, Fun>>
187+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::launch_sender_t<SenderId, Fun>>{};
188+
}

include/nvexec/stream/let_xxx.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
251251
};
252252
};
253253
}
254+
255+
namespace stdexec::__detail {
256+
template <class SenderId, class Fun, class Set>
257+
inline constexpr __mconst<
258+
nvexec::STDEXEC_STREAM_DETAIL_NS::let_sender_t<__name_of<__t<SenderId>>, Fun, Set>>
259+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::let_sender_t<SenderId, Fun, Set>>{};
260+
}

include/nvexec/stream/reduce.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,10 @@ namespace nvexec {
150150

151151
inline constexpr STDEXEC_STREAM_DETAIL_NS::reduce_t reduce{};
152152
}
153+
154+
namespace stdexec::__detail {
155+
template <class SenderId, class Init, class Fun>
156+
extern __mconst<
157+
nvexec::STDEXEC_STREAM_DETAIL_NS::reduce_::sender_t<__name_of<__t<SenderId>>, Init, Fun>>
158+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::reduce_::sender_t<SenderId, Init, Fun>>;
159+
}

include/nvexec/stream/split.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
342342
};
343343
};
344344
}
345+
346+
namespace stdexec::__detail {
347+
template <class SenderId>
348+
extern __mconst<
349+
nvexec::STDEXEC_STREAM_DETAIL_NS::split_sender_t<__name_of<__t<SenderId>>>>
350+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::split_sender_t<SenderId>>;
351+
}

include/nvexec/stream/then.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
195195
};
196196
};
197197
}
198+
199+
namespace stdexec::__detail {
200+
template <class SenderId, class Fun>
201+
inline constexpr __mconst<
202+
nvexec::STDEXEC_STREAM_DETAIL_NS::then_sender_t<__name_of<__t<SenderId>>, Fun>>
203+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::then_sender_t<SenderId, Fun>>{};
204+
}

include/nvexec/stream/upon_error.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
178178
};
179179
};
180180
}
181+
182+
namespace stdexec::__detail {
183+
template <class SenderId, class Fun>
184+
inline constexpr __mconst<
185+
nvexec::STDEXEC_STREAM_DETAIL_NS::upon_error_sender_t<__name_of<__t<SenderId>>, Fun>>
186+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::upon_error_sender_t<SenderId, Fun>>{};
187+
}

include/nvexec/stream/upon_stopped.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
153153
};
154154
};
155155
}
156+
157+
namespace stdexec::__detail {
158+
template <class SenderId, class Fun>
159+
inline constexpr __mconst<
160+
nvexec::STDEXEC_STREAM_DETAIL_NS::upon_stopped_sender_t<__name_of<__t<SenderId>>, Fun>>
161+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::upon_stopped_sender_t<SenderId, Fun>>{};
162+
}

include/nvexec/stream/when_all.cuh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,10 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
415415
};
416416
};
417417
}
418+
419+
namespace stdexec::__detail {
420+
template <bool WithCompletionScheduler, class Scheduler, class... SenderIds>
421+
inline constexpr __mconst<
422+
nvexec::STDEXEC_STREAM_DETAIL_NS::when_all_sender_t<WithCompletionScheduler, Scheduler, __name_of<__t<SenderIds>>...>>
423+
__name_of_v<nvexec::STDEXEC_STREAM_DETAIL_NS::when_all_sender_t<WithCompletionScheduler, Scheduler, SenderIds...>>{};
424+
}

0 commit comments

Comments
 (0)