// 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 #include #include "Stream.h" #include "hc.hpp" #define IMPLEMENTATION_STRING "HC" template class HCStream : public Stream { protected: // Size of arrays unsigned int array_size; // Device side pointers to arrays hc::array d_a; hc::array d_b; hc::array d_c; public: HCStream(const unsigned int, const int); ~HCStream(); virtual void copy() override; virtual void add() override; virtual void mul() override; virtual void triad() override; virtual void write_arrays(const std::vector& a, const std::vector& b, const std::vector& c) override; virtual void read_arrays(std::vector& a, std::vector& b, std::vector& c) override; };