Skip to content

Commit

Permalink
show props of oneAPI device
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale-Black committed Jan 18, 2025
1 parent 462d0d4 commit 35fe455
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function monitor_gpu_memory(backend::String, duration=0.1)
# Get the first device since that's what we're using
device = oneAPI.devices()[1]
props = oneL0.memory_properties(device)[1]
@info props
return (props.totalSize - props.freeSize) / (1024 * 1024)
elseif backend == "AMDGPU"
free, total = AMDGPU.HIP.memory_info()
Expand Down

0 comments on commit 35fe455

Please sign in to comment.