File tree Expand file tree Collapse file tree
tests/GraphBLAS-sharp.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,19 +406,25 @@ module Utils =
406406 .GetDeviceInfo( device, DeviceInfo.Platform, & e)
407407 .CastTo< Platform>()
408408
409- let platformName =
409+ let clPlatform =
410410 Cl
411411 .GetPlatformInfo( platform, PlatformInfo.Name, & e)
412412 .ToString()
413+ |> ClPlatform.Custom
413414
414415 let deviceType =
415416 Cl
416417 .GetDeviceInfo( device, DeviceInfo.Type, & e)
417418 .CastTo< DeviceType>()
418419
419- failwith " fix me"
420- //ClContext(platformName, deviceType)
421- ClContext())
420+ let clDeviceType =
421+ match deviceType with
422+ | DeviceType.Cpu -> ClDeviceType.CPU
423+ | DeviceType.Gpu -> ClDeviceType.GPU
424+ | DeviceType.Default -> ClDeviceType.Default
425+ | _ -> failwith " Unsupported"
426+
427+ Brahma.FSharp.OpenCL.ClContext( clPlatform, clDeviceType))
422428
423429 let createMatrixFromArray2D matrixCase array isZero =
424430 match matrixCase with
You can’t perform that action at this time.
0 commit comments