Skip to content

Commit 29a4d18

Browse files
committed
Profiler: relax parsing of color flags in marker data.
1 parent 2e540fd commit 29a4d18

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CUDATools/src/profile.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,9 @@ function capture(cfg)
590590
nothing
591591
end
592592

593-
color = if record.flags & CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_NONE == CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_NONE
594-
nothing
595-
elseif record.flags & CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_ARGB == CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_ARGB
593+
color = if record.flags & CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_ARGB == CUPTI.CUPTI_ACTIVITY_FLAG_MARKER_COLOR_ARGB
596594
record.color
597595
else
598-
@error "Unexpected CUPTI marker color flag $(Int(record.flags)). Please file an issue."
599596
nothing
600597
end
601598

0 commit comments

Comments
 (0)