* Allocation is buffered and therefore freeing is only needed
* if the previously allocated space is not enough.
* \p currentNumValues and \p currentMaxNumValues are updated.
- * TODO: \p currentNumValues, \p currentMaxNumValues, \p context
+ * TODO: \p currentNumValues, \p currentMaxNumValues, \p deviceContext
* should all be encapsulated in a host-side class together with the buffer.
*
* \tparam ValueType Raw value type of the \p buffer.
* \param[in] numValues Number of values to accommodate.
* \param[in,out] currentNumValues The pointer to the buffer's number of values.
* \param[in,out] currentMaxNumValues The pointer to the buffer's capacity.
- * \param[in] context The buffer's context.
+ * \param[in] deviceContext The buffer's device context.
*/
template <typename ValueType>
void reallocateDeviceBuffer(DeviceBuffer<ValueType> *buffer,
size_t numValues,
int *currentNumValues,
int *currentMaxNumValues,
- Context context)
+ DeviceContext deviceContext)
{
GMX_ASSERT(buffer, "needs a buffer pointer");
GMX_ASSERT(currentNumValues, "needs a size pointer");
}
*currentMaxNumValues = over_alloc_large(numValues);
- allocateDeviceBuffer(buffer, *currentMaxNumValues, context);
+ allocateDeviceBuffer(buffer, *currentMaxNumValues, deviceContext);
}
/* size could have changed without actual reallocation */
*currentNumValues = numValues;