Skip to content

Commit

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

0 comments on commit 462d0d4

Please sign in to comment.