| 47 | } |
| 48 | |
| 49 | std::string get_stream_str(int stream) { |
| 50 | using S = CompNode::Stream; |
| 51 | switch (stream) { |
| 52 | case S::COPY: |
| 53 | return "COPY"; |
| 54 | case S::REMOTE_SEND: |
| 55 | return "REMOTE_SEND"; |
| 56 | case S::LOOP_SWAP: |
| 57 | return "LOOP_SWAP"; |
| 58 | default: |
| 59 | return std::to_string(stream); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | //! resolve to actual device type if type is unspec |
| 64 | CompNode::DeviceType resolve_device_type(CompNode::DeviceType type) { |