| 661 | } |
| 662 | |
| 663 | shared_ptr<BaseVector> BaseVector :: CreateDeviceVector(bool unified) const |
| 664 | { |
| 665 | auto it = devveccreator.find(typeid(*this)); |
| 666 | if (it == devveccreator.end()) |
| 667 | { |
| 668 | cout << IM(1) << "No device creator function, creating host vector"; |
| 669 | cout << IM(7) << ", type = " << typeid(*this).name(); |
| 670 | cout << IM(1) << endl; |
| 671 | return CreateVector(); |
| 672 | } |
| 673 | cout << IM(7) << "DeviceVector creator function for type " << typeid(*this).name() << endl; |
| 674 | return (*it).second(*this, unified); |
| 675 | } |
| 676 | |
| 677 | |
| 678 | /** |
nothing calls this directly
no test coverage detected