BMEVIIIMB01
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
468 B

#pragma once
#include <string>
#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;
};