Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale-Black committed Jan 20, 2025
1 parent 35fe455 commit 7d6144d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function monitor_gpu_memory(backend::String, duration=0.1)
@info props
return (props.totalSize - props.freeSize) / (1024 * 1024)
elseif backend == "AMDGPU"
free, total = AMDGPU.HIP.memory_info()
return (total - free) / (1024 * 1024)
free_mem, total_mem = AMDGPU.Runtime.Mem.info() # Use the correct memory info function
return Float64(total_mem - free_mem) / (1024 * 1024)
elseif backend == "CUDA"
free, total = CUDA.memory_info()
return (total - free) / (1024 * 1024)
Expand Down

0 comments on commit 7d6144d

Please sign in to comment.