Previously, destroyParamLookupTable was called only if buffer was
nullptr (uninitialized). Which looks like a typo, and leads to nothing,
because all implementation of destroyParamLookupTable would refuse to
work on nullptr. Changed the check to free the buffer only if there is
anything to free.
NBParamGpu* nbp,
const DeviceContext& deviceContext)
{
NBParamGpu* nbp,
const DeviceContext& deviceContext)
{
{
destroyParamLookupTable(&nbp->coulomb_tab, nbp->coulomb_tab_texobj);
}
{
destroyParamLookupTable(&nbp->coulomb_tab, nbp->coulomb_tab_texobj);
}