* Added CUDA support * Performance improvements * API improvements * Added "depth" parameter to GEMM * Android cross-compilation
41 lines
657 B
C++
41 lines
657 B
C++
#ifndef ISAAC_DRIVER_CONTEXT_H
|
|
#define ISAAC_DRIVER_CONTEXT_H
|
|
|
|
#include <map>
|
|
#include <memory>
|
|
|
|
#include "isaac/driver/common.h"
|
|
#include "isaac/driver/device.h"
|
|
#include "isaac/driver/handle.h"
|
|
|
|
namespace isaac
|
|
{
|
|
|
|
namespace driver
|
|
{
|
|
|
|
class Context
|
|
{
|
|
friend class Program;
|
|
friend class CommandQueue;
|
|
friend class Buffer;
|
|
|
|
public:
|
|
Context(Device const & device);
|
|
backend_type backend() const;
|
|
Device const & device() const;
|
|
bool operator==(Context const &) const;
|
|
bool operator<(Context const &) const;
|
|
private:
|
|
backend_type backend_;
|
|
Device device_;
|
|
|
|
std::string cache_path_;
|
|
HANDLE_TYPE(cl::Context, CUcontext) h_;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|