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

Method setDeviceType

src/tests/BlasBase.cpp:239–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool
240BlasBase::setDeviceType(const TestParams& params)
241{
242 // Early exit if no device state changed
243 if (devType_ == params.devType && devName_ == params.devName && platOrd_ == params.platOrd && devOrd_ == params.devOrd) {
244 return true;
245 }
246
247 devType_ = params.devType;
248 devName_ = params.devName;
249 platOrd_ = params.platOrd;
250 devOrd_ = params.devOrd;
251 if (!initialized()) {
252 return true;
253 }
254 TearDown();
255 SetUp();
256
257 return initialized();
258}
259
260cl_mem
261BlasBase::createEnqueueBuffer(

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected