src/device/GPU_Device.cc
GPU_Device::~GPU_Device() {
  // Free reserved contexts:
  for (int device = 0; device < deviceCount; device++) {
    // Only initialize if compute capability >= 2.0
    if (computeCapability[device][0] >= 2) {
      cudaError_enum err = cuCtxDestroy(context[device]);
      checkForCudaError(err);
    }
  }
}
/*!
 * \brief destructor
 *
 * Free the device context and unload any modules.
 */
\brief destructor
Free the device context and unload any modules.
\ brief destructor Free the device context and unload any modules .
GPU_Device::~GPU_Device() {
  for (int device = 0; device < deviceCount; device++) {
    if (computeCapability[device][0] >= 2) {
      cudaError_enum err = cuCtxDestroy(context[device]);
      checkForCudaError(err);
    }
  }
}
GPU_Device :: ~ GPU_Device ( ) { for ( int device = 0 ; device < deviceCount ; device ++ ) { if ( computeCapability [ device ] [ 0 ] >= 2 ) { cudaError_enum err = cuCtxDestroy ( context [ device ] ) ; checkForCudaError ( err ) ; } } }
\brief destructor
 Free the device context and unload any modules.
\ brief destructor Free the device context and unload any modules .
// Free reserved contexts: // Only initialize if compute capability >= 2.0