| 15 | } |
| 16 | |
| 17 | Ref<Device> newDevice(const int* deviceIDs, const hipStream_t* streams, int numPairs) override |
| 18 | { |
| 19 | if (numPairs != 1) |
| 20 | throw Exception(Error::InvalidArgument, "invalid number of HIP devices/streams"); |
| 21 | if (deviceIDs == nullptr) |
| 22 | throw Exception(Error::InvalidArgument, "array of HIP devices is null"); |
| 23 | if (streams == nullptr) |
| 24 | throw Exception(Error::InvalidArgument, "array of HIP streams is null"); |
| 25 | |
| 26 | return makeRef<HIPDevice>(deviceIDs[0], streams[0]); |
| 27 | } |
| 28 | |
| 29 | Ref<Device> newDevice(const Ref<PhysicalDevice>& physicalDevice) override |
| 30 | { |