Skip to content

Commit 00c0f64

Browse files
committed
minor bugfix and cleanup
1 parent f762abf commit 00c0f64

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

samples/99_profbench/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ kernel void inc_buffer(global int* dst)
1616
}
1717
)CLC";
1818

19-
int main(
20-
int argc,
21-
char** argv )
19+
int main(int argc, char** argv )
2220
{
2321
int platformIndex = 0;
2422
int deviceIndex = 0;
@@ -105,7 +103,7 @@ int main(
105103
auto start = std::chrono::system_clock::now();
106104

107105
for (const auto& event : events) {
108-
totalTimeNS =
106+
totalTimeNS +=
109107
event.getProfilingInfo<CL_PROFILING_COMMAND_END>() -
110108
event.getProfilingInfo<CL_PROFILING_COMMAND_START>();
111109
}

0 commit comments

Comments
 (0)