Skip to content

Commit

Permalink
Fix erroneous use of long rather than size_t for CL_DEVICE_PROFILING_…
Browse files Browse the repository at this point in the history
…TIMER_RESOLUTION--breaks on 32-bit host
  • Loading branch information
Sam McKelvie committed Nov 1, 2016
1 parent 5def8d3 commit 4728656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ struct device_info_traits dinfo_traits[] = {
*/

/* Profiling resolution */
{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_PROFILING_TIMER_RESOLUTION, "Profiling timer resolution", "ns", long), NULL },
{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_PROFILING_TIMER_RESOLUTION, "Profiling timer resolution", "ns", sz), NULL },
{ CLINFO_HUMAN, DINFO(CL_DEVICE_PROFILING_TIMER_OFFSET_AMD, "Profiling timer offset since Epoch (AMD)", time_offset), dev_has_amd },
{ CLINFO_RAW, DINFO(CL_DEVICE_PROFILING_TIMER_OFFSET_AMD, "Profiling timer offset since Epoch (AMD)", long), dev_has_amd },

Expand Down

0 comments on commit 4728656

Please sign in to comment.