#pragma once #include #include "cl.hpp" class TestCase { protected: cl::Buffer clInputBuffer; cl::Buffer clResultBuffer; size_t data_size = 0; public: virtual void collect_results(cl::CommandQueue* queue) = 0; virtual void gpu_compute( cl::Context* context, cl::CommandQueue* queue, cl::Program* program, cl::Event* Event ) = 0; virtual void cpu_compute() = 0; virtual bool validate_results() = 0; virtual std::string description() = 0; };