-
-
Save josesoyo/e788e303907a54fe598ea5b019dfa217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#time | |
// CPU | |
[|0..1000|] |> | |
Array.iter(fun _ -> | |
(A1 ,A2) ||> Array.map2(fun old t -> old+(DoStuff( t, amplitudes, phases, frequencies)) | |
) |> ignore | |
) | |
// OpenCL | |
[|0..1000|] |> | |
Array.iter(fun _ -> <@ (DoStuffOpenCL A1 A2 amplitudes phases frequencies ws) @>.Run() |> ignore ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment