m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.41k stars 120 forks source link

Integration with current app #990

Closed ilkerccom closed 1 year ago

ilkerccom commented 1 year ago

Hello,

I have an application that is currently running with CPU. How can I make it GPU supported? I want it to do the calculations on the GPU. Or there may be a code sample that will generate a random private key and convert it into a BTC address.

I have read the guide and documentation but I do not understand it.

Project example; https://github.com/ilkerccom/bitcoinpuzzlescanner

Thanks.

MoFtZ commented 1 year ago

welcome @ilkerccom. We have code samples, but nothing specific for your needs.

Looking at the example project you linked to, it will unfortunately need to be re-written as there are a number of limitations with GPU programming. For example, BigInteger is not supported on the GPU because it is not possible to perform memory allocations inside GPU kernel. Another example of a limitation is the inability to perform string handling, such as string.Format or BigInteger.Parse.

You might want to start with reading the ILGPU documentation, which has some beginner tutorials - https://ilgpu.net/docs

We also have a Discord server that you might like to join.

ilkerccom commented 1 year ago

Thanks @MoFtZ, I will review the documentation again.