File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ inline uint64_t GetDeviceTimestampMask(ze_device_handle_t device) {
510510 o_api_string.c_str ());
511511 };
512512 PTI_ASSERT (status == ZE_RESULT_SUCCESS);
513- return ((props.kernelTimestampValidBits == 64 ) ? std::numeric_limits<uint64_t >::max ()
513+ return ((props.kernelTimestampValidBits == 64 ) ? ( std::numeric_limits<uint64_t >::max) ()
514514 : ((1ull << props.kernelTimestampValidBits ) - 1ull ));
515515}
516516
@@ -533,7 +533,7 @@ inline uint64_t GetMetricTimestampMask(ze_device_handle_t device) {
533533 if ((devicemask == 0x5600 ) || (devicemask == 0x4F00 ) || (devicemask == 0x0B00 )) {
534534 return (1ull << (props.kernelTimestampValidBits - 1 )) - 1ull ;
535535 } else {
536- return ((props.kernelTimestampValidBits == 64 ) ? std::numeric_limits<uint64_t >::max ()
536+ return ((props.kernelTimestampValidBits == 64 ) ? ( std::numeric_limits<uint64_t >::max) ()
537537 : ((1ull << props.kernelTimestampValidBits ) - 1ull ));
538538 }
539539#endif
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class ProfOptions {
6060 }
6161
6262 std::string GetLogFileName (
63- uint32_t pid = std::numeric_limits<uint32_t >::max()) const {
63+ uint32_t pid = ( std::numeric_limits<uint32_t >::max) ()) const {
6464 if (log_file_.empty ()) {
6565 return std::string ();
6666 }
@@ -74,7 +74,7 @@ class ProfOptions {
7474 result << log_file_.substr (0 , pos);
7575 }
7676
77- if (pid == std::numeric_limits<uint32_t >::max ()) {
77+ if (pid == ( std::numeric_limits<uint32_t >::max) ()) {
7878 pid = utils::GetPid ();
7979 }
8080 result << " ." + std::to_string (pid);
Original file line number Diff line number Diff line change 1313#include < string>
1414#include < thread>
1515#include < vector>
16+ #include < limits>
1617
1718#include < level_zero/ze_api.h>
1819#include < level_zero/zet_api.h>
@@ -356,7 +357,7 @@ inline uint64_t GetDeviceTimestampMask(ze_device_handle_t device) {
356357 ze_device_properties_t props{ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES_1_2, };
357358 ze_result_t status = zeDeviceGetProperties (device, &props);
358359 PTI_ASSERT (status == ZE_RESULT_SUCCESS);
359- return ((props.kernelTimestampValidBits == 64 ) ? std::numeric_limits<uint64_t >::max ()
360+ return ((props.kernelTimestampValidBits == 64 ) ? ( std::numeric_limits<uint64_t >::max) ()
360361 : ((1ull << props.kernelTimestampValidBits ) - 1ull ));
361362}
362363
@@ -372,7 +373,7 @@ inline uint64_t GetMetricTimestampMask(ze_device_handle_t device) {
372373 return (1ull << (props.kernelTimestampValidBits - 1 )) - 1ull ;
373374 }
374375 else {
375- return ((props.kernelTimestampValidBits == 64 ) ? std::numeric_limits<uint64_t >::max ()
376+ return ((props.kernelTimestampValidBits == 64 ) ? ( std::numeric_limits<uint64_t >::max) ()
376377 : ((1ull << props.kernelTimestampValidBits ) - 1ull ));
377378 }
378379#endif
You can’t perform that action at this time.
0 commit comments