cpp/include/raft/handle.hpp
handle_t(rmm::cuda_stream_view stream_view                  = rmm::cuda_stream_per_thread,
           std::shared_ptr<rmm::cuda_stream_pool> stream_pool = {nullptr})
    : dev_id_([]() -> int {
        int cur_dev = -1;
        RAFT_CUDA_TRY(cudaGetDevice(&cur_dev));
        return cur_dev;
      }()),
      stream_view_{stream_view},
      stream_pool_{stream_pool}
  {
    create_resources();
  }
/**
   * @brief Construct a handle with a stream view and stream pool
   *
   * @param[in] stream_view the default stream (which has the default per-thread stream if
   * unspecified)
   * @param[in] stream_pool the stream pool used (which has default of nullptr if unspecified)
   */
@brief Construct a handle with a stream view and stream pool
@param[in] stream_view the default stream (which has the default per-thread stream if
unspecified)
@param[in] stream_pool the stream pool used (which has default of nullptr if unspecified)
@brief Construct a handle with a stream view and stream pool @param [ in ] stream_view the default stream ( which has the default per - thread stream if unspecified ) @param [ in ] stream_pool the stream pool used ( which has default of nullptr if unspecified )
handle_t(rmm::cuda_stream_view stream_view                  = rmm::cuda_stream_per_thread,
           std::shared_ptr<rmm::cuda_stream_pool> stream_pool = {nullptr})
    : dev_id_([]() -> int {
        int cur_dev = -1;
        RAFT_CUDA_TRY(cudaGetDevice(&cur_dev));
        return cur_dev;
      }()),
      stream_view_{stream_view},
      stream_pool_{stream_pool}
  {
    create_resources();
  }
handle_t ( rmm :: cuda_stream_view stream_view = rmm :: cuda_stream_per_thread , std :: shared_ptr < rmm :: cuda_stream_pool > stream_pool = { nullptr } ) : dev_id_ ( [ ] ( ) -> int { int cur_dev = -1 ; RAFT_CUDA_TRY ( cudaGetDevice ( & cur_dev ) ) ; return cur_dev ; } ( ) ) , stream_view_ { stream_view } , stream_pool_ { stream_pool } { create_resources ( ) ; }
@brief Construct a handle with a stream view and stream pool
 @param[in] stream_view the default stream (which has the default per-thread stream if
 unspecified)
 @param[in] stream_pool the stream pool used (which has default of nullptr if unspecified)
@brief Construct a handle with a stream view and stream pool @param [ in ] stream_view the default stream ( which has the default per - thread stream if unspecified ) @param [ in ] stream_pool the stream pool used ( which has default of nullptr if unspecified )