Files
triton/include/isaac/driver/context.h
Philippe Tillet cf5028d55b Squashed feature branch:
* Added CUDA support
 * Performance improvements
 * API improvements
 * Added "depth" parameter to GEMM
 * Android cross-compilation
2015-04-29 15:52:21 -04:00

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