Commit de8ac901 authored by Kazutomo Yoshii's avatar Kazutomo Yoshii
Browse files

added version

parent 16344ff2
......@@ -43,6 +43,8 @@ public:
bool buffered;
cl::Buffer buf;
};
const int version_major = 0;
const int version_minor = 1;
private:
std::vector<cl::Platform> pfs; // initialized only in c'tor
std::vector<cl::Device> devs; // initialized only in c'tor
......@@ -289,6 +291,11 @@ public:
std::cout << std::endl;
}
}
void info(void) {
std::cout << "clwrap version " << version_major << "." << version_minor << std::endl;
listPlatforms();
listDevices();
}
bool prepKernel(const char *filename, const char *funcname = NULL) {
std::string fn = filename;
......
......@@ -15,8 +15,7 @@ static void test_clwrap()
{
clwrap cw;
cw.listPlatforms();
cw.listDevices();
cw.info();
int gsiz = 8;
int lsiz = 4;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment