Initial RPS CUDA implementation
This commit is contained in:
commit
8d583036d0
33 changed files with 2968 additions and 0 deletions
23
server/gpu.hpp
Normal file
23
server/gpu.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
struct Config;
|
||||
class GPU {
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> p;
|
||||
|
||||
public:
|
||||
GPU(const Config &, int priority, bool snapshots = true);
|
||||
~GPU();
|
||||
void step();
|
||||
void sync();
|
||||
bool snapshot(bool mandatory);
|
||||
const unsigned char *pixels() const;
|
||||
void ack();
|
||||
std::vector<unsigned char> unpack();
|
||||
void benchmark();
|
||||
uint64_t aggregateNs() const;
|
||||
uint64_t downloadNs() const;
|
||||
void loadTestCells(const std::vector<unsigned char> &cells);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue