2015-04-29 15:50:57 -04:00
|
|
|
#ifndef ISAAC_DRIVER_PLATFORM_H
|
|
|
|
#define ISAAC_DRIVER_PLATFORM_H
|
|
|
|
|
2015-07-21 22:02:36 -07:00
|
|
|
#include "isaac/defines.h"
|
2015-04-29 15:50:57 -04:00
|
|
|
#include "isaac/driver/common.h"
|
|
|
|
|
|
|
|
namespace isaac
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace driver
|
|
|
|
{
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
|
2015-07-21 22:02:36 -07:00
|
|
|
class ISAACAPI Platform
|
2015-04-29 15:50:57 -04:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
#ifdef ISAAC_WITH_CUDA
|
|
|
|
Platform(backend_type);
|
|
|
|
#endif
|
|
|
|
Platform(cl::Platform const &);
|
|
|
|
std::string name() const;
|
|
|
|
std::string version() const;
|
|
|
|
std::vector<Device> devices() const;
|
|
|
|
static std::vector<Platform> get();
|
|
|
|
|
|
|
|
private:
|
|
|
|
backend_type backend_;
|
|
|
|
cl::Platform cl_platform_;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|