-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run on macOS/Mono 5+ #81
Comments
Tip 1In order to fix
Tip 2The current let (platforms, error) = OpenCL.Net.Cl.GetPlatformIDs()
for pl in platforms do
let (_,paramSize) = OpenCL.Net.Cl.GetPlatformInfo(pl, PlatformInfo.Name, System.IntPtr.Zero, InfoBuffer.Empty)
use buffer = new InfoBuffer(paramSize)
Cl.GetPlatformInfo(pl, PlatformInfo.Name, paramSize, buffer) |> ignore
printfn "Platform=%A" (buffer)
let provider = ComputeProvider.Create()//("Apple", DeviceType.Default)
for d in provider.Devices do
let getInfo (pName:DeviceInfo)=
let (_,paramSize) = Cl.GetDeviceInfo(d, pName, System.IntPtr.Zero, InfoBuffer.Empty)
use buffer = new InfoBuffer(paramSize)
Cl.GetDeviceInfo(d, pName, paramSize, buffer) |> ignore
buffer.ToString()
printfn "Device=[Name=%s;\tDriverVersion=%A]"
(getInfo DeviceInfo.Name)
((getInfo DeviceInfo.DriverVersion)) prints
Tip 3Static Timer<string>.Global.Start()
...
Timer<string>.Global.Lap("OpenCL") |
When I commented all calls to
Note: This is strange that stack trace does not have line numbers ( |
Error message after executing new sample on
|
@sergey-tihon Thanks for additional informatuion. Seems, that it was a problem with extra spaces in compiler options. Fixed in Brahma.FSharp v1.1.3. |
Woohoo !!! Thank you for help @gsvgit .
|
Description
Is possible to use
Brahma.FSharp
on macOS / Mono 5+?Repro steps
Actual behavior
The error that I see (this probably could be more informative)
Additional info
I did try to print platform details before execution of
Main
method.I this case I see the following error
Related information
The text was updated successfully, but these errors were encountered: