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

Method destroy

src/tests/functional/func.h:400–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400template <typename T> void
401baseMetod<T>::destroy()
402{
403 if (outEvent != NULL) {
404 for (unsigned int i = 0; i < qnum; ++i) {
405 outEvent[i] = NULL;
406 }
407 delete[](outEvent);
408 }
409
410 //std::cerr << "destroy "<< std::endl;
411
412 delete[] this->A;
413 delete[] this->B;
414 delete[] this->C;
415 delete[] this->AP;
416 delete[] this->X;
417 delete[] this->Y;
418
419 clReleaseMemObject(this->bufA);
420 clReleaseMemObject(this->bufB);
421 clReleaseMemObject(this->bufC);
422 clReleaseMemObject(this->bufAP);
423 clReleaseMemObject(this->bufX);
424 clReleaseMemObject(this->bufY);
425
426 A = NULL;
427 B = NULL;
428 C = NULL;
429 AP = NULL;
430 X = NULL;
431 Y = NULL;
432
433 bufA = NULL;
434 bufB = NULL;
435 bufC = NULL;
436 bufAP = NULL;
437 bufX = NULL;
438 bufY = NULL;
439}
440
441template <typename T> void
442baseMetod<T>::compareData(baseMetod<T> & source)

Callers 4

errorMethod · 0.45
imagesMethod · 0.45
runOutMethod · 0.45
runInMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected