Loading...
Searching...
No Matches
4#define MUDA_CUB_WRAPPER_IMPL(x) \
5 cudaStream_t _stream = this->stream(); \
6 size_t temp_storage_bytes = 0; \
7 void* d_temp_storage = nullptr; \
11 d_temp_storage = (void*)prepare_buffer(temp_storage_bytes); \
17#define MUDA_CUB_WRAPPER_FOR_COMPUTE_GRAPH_IMPL(x) \
18 std::string_view name{__func__}; \
19 ComputeGraphBuilder::invoke_phase_actions( \
22 cudaStream_t _stream = this->stream(); \
27 MUDA_ASSERT(!ComputeGraphBuilder::is_building() || d_temp_storage != nullptr, \
28 "d_temp_storage must not be nullptr when building graph. you should not" \
29 "query the temp_storage_size when building a compute graph, please do it outside" \
30 "a compute graph."); \
31 ComputeGraphBuilder::capture( \
32 name, [&](cudaStream_t _stream) { checkCudaErrors(x); }); \