Skip to content

Commit

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

0 comments on commit a538d64

Please sign in to comment.