Skip to content

Commit

Permalink
Change MAX_MEMORY_BANDWIDTH device query to uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
omarahmed1111 committed Feb 3, 2025
1 parent af4f331 commit cde90bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/adapters/cuda/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
&MemoryBusWidth, CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH,
hDevice->get()));
}
uint64_t MemoryBandwidthConstant = 250;

uint32_t MemoryBandwidth = MemoryClockKHz * MemoryBusWidth * 250;
uint64_t MemoryBandwidth = static_cast<uint64_t>(
MemoryClockKHz * MemoryBusWidth * MemoryBandwidthConstant);

return ReturnValue(MemoryBandwidth);
}
Expand Down

0 comments on commit cde90bd

Please sign in to comment.