Skip to content
Snippets Groups Projects
Commit e4846e61 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Revert "CUDA streams: Omit event record when not needed [skip ci]"

This reverts commit 26ff9abc.
parent 26ff9abc
Branches
No related merge requests found
......@@ -56,7 +56,7 @@ case class CUDA_PendingStreamTransfers(
case class CUDA_EventRecord(event : CUDA_Event, stream : CUDA_Stream) extends IR_Statement with IR_Expandable {
override def expand() : OutputType = {
if (stream.useNonDefaultStreams && event.synchronizationNecessary)
if (event.synchronizationNecessary)
CUDA_CheckError(IR_FunctionCall(IR_ExternalFunctionReference("cudaEventRecord"), event, stream))
else
IR_NullStatement
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment