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
5
namespace
graphite
{
6
7
class
StreamPool
{
8
private
:
9
cudaStream_t *streams;
10
size_t
num_streams;
11
bool
cleanup_streams;
12
13
public
:
14
StreamPool
(
size_t
num_streams);
15
16
StreamPool
(cudaStream_t *p_streams,
size_t
n);
17
~StreamPool
();
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
graphite::StreamPool
Definition
stream.hpp:7
graphite
The top-level namespace for Graphite.
Definition
eigen_solver.cpp:4
include
graphite
stream.hpp
Generated by Doxygen
1.9.8