|
FreeTensor
|
#include <device.h>
Public Member Functions | |
| Device (const TargetType &targetType, int num=0) | |
| Device (const TargetType &targetType, const std::string &getDeviceByName) | |
| Device (const TargetType &targetType, const std::string &getDeviceByFullName, size_t nth) | |
| TargetType | type () const |
| MemType | mainMemType () const |
| int | num () const |
| const Ref< Target > & | target () const |
| void | sync () |
Friends | |
| bool | operator== (const Device &lhs, const Device &rhs) |
| std::ostream & | operator<< (std::ostream &os, const Device &device) |
A computing device can be constructed from
Fullname.E.g. Device(TargetType::GPU, 0) means the 0-th GPU (device) Device(TargetType::GPU, "V100") means a GPU which best matches "V100" Device(TargetType::GPU, "NVIDIA GeForce RTX 3060 Laptop GPU", 0)
| freetensor::Device::Device | ( | const TargetType & | targetType, |
| int | num = 0 |
||
| ) |
| freetensor::Device::Device | ( | const TargetType & | targetType, |
| const std::string & | getDeviceByName | ||
| ) |
| freetensor::Device::Device | ( | const TargetType & | targetType, |
| const std::string & | getDeviceByFullName, | ||
| size_t | nth | ||
| ) |
|
inline |
|
inline |
| void freetensor::Device::sync | ( | ) |
|
inline |
|
friend |