MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / device

Method device

src/library/tools/ktest/config.cpp:121–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121std::string
122Config::device() const
123{
124 std::string name;
125 cl_int err;
126 size_t sz;
127 char *dname;
128
129 err = clGetDeviceInfo(device_, CL_DEVICE_NAME, 0, NULL, &sz);
130 if (err != CL_SUCCESS) {
131 return "";
132 }
133 dname = new char[sz + 1];
134 err = clGetDeviceInfo(device_, CL_DEVICE_NAME, sz, dname, NULL);
135 if (err != CL_SUCCESS) {
136 delete[] dname;
137 return "";
138 }
139 name = dname;
140 delete[] dname;
141 return name;
142}
143
144const std::string&
145Config::buildOptions() const

Callers 2

mainFunction · 0.45
KTestMethod · 0.45

Calls

no outgoing calls

Tested by 1

KTestMethod · 0.36