Ejemplo n.º 1
0
cudaError_t cudaStreamDestroy (cudaStream_t stream)
{
	cudaError_t res;

#if defined (DEBUG)
	fprintf (stderr, PACKAGE_NAME": THREAD %d cudaStreamDestroy is at %p\n", THREADID, real_cudaStreamDestroy);
	fprintf (stderr, PACKAGE_NAME": THREAD %d cudaStreamDestroy params %p\n", THREADID, stream);
#endif

	if (real_cudaStreamDestroy != NULL && mpitrace_on && Extrae_get_trace_CUDA())
	{
		Extrae_cudaStreamDestroy_Enter (stream);
		res = real_cudaStreamDestroy (stream);
		Extrae_cudaStreamDestroy_Exit ();
	}
	else if (real_cudaStreamDestroy != NULL && !(mpitrace_on && Extrae_get_trace_CUDA()))
	{
		res = real_cudaStreamDestroy (stream);
	}
	else
	{
		fprintf (stderr, "Unable to find cudaStreamDestroy in DSOs!! Dying...\n");
		exit (0);
	}

	return res;
}
Ejemplo n.º 2
0
cudaError_t cudaStreamDestroy (cudaStream_t stream) {
    return real_cudaStreamDestroy(stream);
}