Add format script.
Adds a script to run clang-format on the latest patch so we don't
need to remember the command line.
Also applies missing formatting to the prior commit,
"Add API for available GPU memory".
Change-Id: Ida51aedc38af229f6a26e275072654860748fa93
[ROCm/ROCR-Runtime commit: e7152c8b16]
This commit is contained in:
@@ -1038,11 +1038,9 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
|
||||
status = hsaKmtAvailableMemory(node_id(), &availableBytes);
|
||||
|
||||
if (status != HSAKMT_STATUS_SUCCESS)
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
if (status != HSAKMT_STATUS_SUCCESS) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
|
||||
for (auto r: regions())
|
||||
availableBytes += ((AMD::MemoryRegion*)r)->GetCacheSize();
|
||||
for (auto r : regions()) availableBytes += ((AMD::MemoryRegion*)r)->GetCacheSize();
|
||||
|
||||
availableBytes += scratch_cache_.free_bytes();
|
||||
|
||||
|
||||
Verwijs in nieuw issue
Block a user