thirdparty/cuda/api/memory.hpp
inline void deregister(void *ptr)
{
	auto result = cudaHostUnregister(ptr);
	cuda::throw_if_error(result,
		"Could not unregister the memory segment starting at address *a");
}
// the CUDA API calls this "unregister", but that's semantically
// inaccurate. The registration is not undone, rolled back, it's
// just ended
the CUDA API calls this "unregister", but that's semantically
inaccurate. The registration is not undone, rolled back, it's
just ended
the CUDA API calls this " unregister " but that ' s semantically inaccurate . The registration is not undone rolled back it ' s just ended
inline void deregister(void *ptr)
{
	auto result = cudaHostUnregister(ptr);
	cuda::throw_if_error(result,
		"Could not unregister the memory segment starting at address *a");
}
inline void deregister ( void * ptr ) { auto result = cudaHostUnregister ( ptr ) ; cuda :: throw_if_error ( result , " " ) ; }
the CUDA API calls this "unregister", but that's semantically
inaccurate.
the CUDA API calls this " unregister " but that ' s semantically inaccurate .