Replies: 4 comments 6 replies
-
I’ll take a look. Is this something that essentially requires a total rewrite of our library in ILGPU syntax? |
Beta Was this translation helpful? Give feedback.
-
In doing some reading, GPU compatibility for indicators will need to be an entirely new library because it requires unique programming concepts that may not work well for people who can’t or don’t want to use a GPU. I’ll keep this in mind for a new project, but will keep this discussion going here for research and implementation discovery. |
Beta Was this translation helpful? Give feedback.
-
Dave, this caught my eye, because I have experience with C#/Unity/DirectX. I'll follow your lead on the wontfix-ness of this, but have to say that I'm intrigued, and honestly surprised that I hadn't thought of it, myself... Windows won't even install on a computer without a halfway decent GPU anymore, and OpenGL has ports for every other major OS. ComputeShaders are actually relatively easy to create, can be written in C#, and can return all of the typical .NET enumerable types used in this package. I'm willing to bet that most of your {maths} code will run on a GPU, unmodified. Pre-processor directives should be able to automate the GPU initialization, and handle directing the CalcXxx functions to the CPU/GPU, as appropriate. Conceptually:
The caveat:
That said:
|
Beta Was this translation helpful? Give feedback.
-
Here is one example of creating a sum of an array using ilgpu https://github.com/m4rs-mt/ILGPU/blob/master/Samples/SharedMemory/Program.cs this example synchronizes memory between CPU and GPU.
Is your library using Parallel.Foreach to maximize use of CPU cores?
https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/
…On May 14, 2022 at 12:48:46 AM, Dave Skender ***@***.******@***.***)) wrote:
In doing some reading, GPU compatibility for indicators will need to be an entirely new library because it requires unique programming concepts that may not work well for people who can’t or don’t want to use a GPU.
I’ll keep this in mind for a new project, but will keep this discussion going here for research and implementation discovery.
—
Reply to this email directly, view it on GitHub(#765 (comment)), or unsubscribe(https://github.com/notifications/unsubscribe-auth/ADHPINX4ZYDGJJNW6HE77DDVJ5EE5ANCNFSM5UED7XZA).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I would like to see the Stock Indicators GPU accelerated for faster signal processing.
The open source library https://www.ilgpu.net is well suited for this.
It would be great to see this library integrated with the Stock.Indicators library for optimal performance.
Beta Was this translation helpful? Give feedback.
All reactions