Skip to content

Commit 6798c30

Browse files
committed
Add distinctBy device name to context provider
1 parent 83377da commit 6798c30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

benchmarks/GraphBLAS-sharp.Benchmarks/BenchmarksEWiseAdd.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ type EWiseAddBenchmarks() =
8282
Cl.GetPlatformIDs &e
8383
|> Array.collect (fun platform -> Cl.GetDeviceIDs(platform, deviceType, &e))
8484
|> Seq.ofArray
85+
|> Seq.distinctBy (fun device -> Cl.GetDeviceInfo(device, DeviceInfo.Name, &e).ToString())
8586
|> Seq.filter
8687
(fun device ->
8788
let platform = Cl.GetDeviceInfo(device, DeviceInfo.Platform, &e).CastTo<Platform>()

0 commit comments

Comments
 (0)