| 168 | class FtTestBase: public testing::Test { |
| 169 | public: |
| 170 | void SetUp() override |
| 171 | { |
| 172 | int device = 0; |
| 173 | cudaGetDevice(&device); |
| 174 | cudaStreamCreate(&stream); |
| 175 | allocator = new ft::Allocator<ft::AllocatorType::CUDA>(device); |
| 176 | allocator->setStream(stream); |
| 177 | } |
| 178 | |
| 179 | void TearDown() override |
| 180 | { |