Graphite  0.5.0
GPU-accelerated graph optimization framework
Loading...
Searching...
No Matches
stream.hpp
Go to the documentation of this file.
1
2#pragma once
3#include <cuda_runtime.h>
4
5namespace graphite {
6
7class StreamPool {
8private:
9 cudaStream_t *streams;
10 size_t num_streams;
11 bool cleanup_streams;
12
13public:
14 StreamPool(size_t num_streams);
15
16 StreamPool(cudaStream_t *p_streams, size_t n);
18
19 cudaStream_t &select(size_t index);
20
21 void sync_all();
22
23 void sync_n(size_t n);
24};
25
26} // namespace graphite
Definition stream.hpp:7
The top-level namespace for Graphite.
Definition eigen_solver.cpp:4