Function flamegpu::detail::cuda::cudaFreeHost

Function Documentation

inline cudaError_t flamegpu::detail::cuda::cudaFreeHost(void *devPtr)

Wrapped cudaFreeHost which checks that the pointer is a valid page-locked pointer prior to freeing. This also prevents double free errors from being raised, as the pointer attributes in that case are the same as a reset device, would need to check the primary context too?

Parameters:

devPtr – pointer to memory to free

Returns:

forward the cuda error status from the inner cudaFreeHost call