cudaCloverField::~cudaCloverField() { #ifdef USE_TEXTURE_OBJECTS destroyTexObject(); #endif if (clover != cloverInv) { if (clover) device_free(clover); if (norm) device_free(norm); } if (cloverInv) device_free(cloverInv); if (invNorm) device_free(invNorm); checkCudaError(); }
cudaCloverField::~cudaCloverField() { #ifdef USE_TEXTURE_OBJECTS destroyTexObject(); #endif if (create != QUDA_REFERENCE_FIELD_CREATE) { if (clover != cloverInv) { if (clover) device_free(clover); if (norm) device_free(norm); } if (cloverInv) device_free(cloverInv); if (invNorm) device_free(invNorm); } checkCudaError(); }