mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
mute warnings
This commit is contained in:
parent
f8d231bbc9
commit
d660425e00
@ -105,8 +105,8 @@ int main()
|
|||||||
hostB.resize(N);
|
hostB.resize(N);
|
||||||
hostC.resize(N);
|
hostC.resize(N);
|
||||||
|
|
||||||
std::iota(std::begin(hostA), std::end(hostA), 0);
|
std::iota(std::begin(hostA), std::end(hostA), 0.0f);
|
||||||
std::iota(std::begin(hostB), std::end(hostB), 0);
|
std::iota(std::begin(hostB), std::end(hostB), 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ int main()
|
|||||||
CL_ASSERT(clGetEventProfilingInfo(evt, CL_PROFILING_COMMAND_START, sizeof(cl_ulong), &start, nullptr));
|
CL_ASSERT(clGetEventProfilingInfo(evt, CL_PROFILING_COMMAND_START, sizeof(cl_ulong), &start, nullptr));
|
||||||
CL_ASSERT(clGetEventProfilingInfo(evt, CL_PROFILING_COMMAND_END, sizeof(cl_ulong), &end, nullptr));
|
CL_ASSERT(clGetEventProfilingInfo(evt, CL_PROFILING_COMMAND_END, sizeof(cl_ulong), &end, nullptr));
|
||||||
CL_ASSERT(clReleaseEvent(evt));
|
CL_ASSERT(clReleaseEvent(evt));
|
||||||
durations[i] = (end - start) * 0.001;
|
durations[i] = (end - start) * 0.001f;
|
||||||
std::cout << "VectorAdd Kernel " << i << " tooks " << static_cast<int>(durations[i]) << "us" << std::endl;
|
std::cout << "VectorAdd Kernel " << i << " tooks " << static_cast<int>(durations[i]) << "us" << std::endl;
|
||||||
};
|
};
|
||||||
float avg = std::accumulate(durations.cbegin(), durations.cend(), 0.0f) / durations.size();
|
float avg = std::accumulate(durations.cbegin(), durations.cend(), 0.0f) / durations.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user