MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / SetUp

Method SetUp

tests/unittests/gtest_utils.h:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168class FtTestBase: public testing::Test {
169public:
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 {

Callers

nothing calls this directly

Calls 1

setStreamMethod · 0.45

Tested by

no test coverage detected