// Copyright (c) 2015-16 Tom Deakin, Simon McIntosh-Smith, // University of Bristol HPC // // For full license terms please see the LICENSE file distributed with this // source code #pragma once #include #include template class Stream { public: virtual ~Stream(){} // Kernels // These must be blocking calls virtual void copy() = 0; virtual void mul() = 0; virtual void add() = 0; virtual void triad() = 0; // Copy memory between host and device virtual void write_arrays(const std::vector& a, const std::vector& b, const std::vector& c) = 0; virtual void read_arrays(std::vector& a, std::vector& b, std::vector& c) = 0; }; // Implementation specific device functions void listDevices(void); std::string getDeviceName(const int); std::string getDeviceDriver(const int);