thirdparty/cuda/api/memory.hpp
/**
 * Free a region of device-side memory which was allocated with @ref allocate.
 */
Free a region of device-side memory which was allocated with @ref allocate.
Free a region of device - side memory which was allocated with @ref allocate .
inline void free(void* ptr)
{
	auto result = cudaFree(ptr);
	cuda::throw_if_error(result, "Freeing device memory at 0x" + cuda::detail::ptr_as_hex(ptr));
}
inline void free ( void * ptr ) { auto result = cudaFree ( ptr ) ; cuda :: throw_if_error ( result , " " + cuda :: detail :: ptr_as_hex ( ptr ) ) ; }
Free a region of device-side memory which was allocated with @ref allocate.
Free a region of device - side memory which was allocated with @ref allocate .