So obviously doing parallel for and foreach in c# isn't that bad to do however i have to make some custom code that will process extremely faster if using CUDA cores/GPU.
I have a sample code to just try to understand but im drawing blanks on what/how to adjust the current code to test some simple foreach from a list of strings.
This is the code:
https://pastebin.com/pPz6GawA
So what im confused on is the whole VectorStruct[], is it literally like a list of work to be done and sent to the GPU?
I'm also confused as to how each of the for loops come into play for this example. i assume theKernal is the actual code being executed on the cores?
I guess any basic breakdown on how this works and how you're supposed to code a parallel for/foreach correctly using all cores.
I have a sample code to just try to understand but im drawing blanks on what/how to adjust the current code to test some simple foreach from a list of strings.
This is the code:
https://pastebin.com/pPz6GawA
So what im confused on is the whole VectorStruct[], is it literally like a list of work to be done and sent to the GPU?
I'm also confused as to how each of the for loops come into play for this example. i assume theKernal is the actual code being executed on the cores?
I guess any basic breakdown on how this works and how you're supposed to code a parallel for/foreach correctly using all cores.
Free Direct File Hosting Service
Donations
LTC - Lgw3s3GzaWgVcCD2H1n2u1bnWHKPFU2SKo | BTC - 1LYMHXxtcyN1JrcSBkXgh1LrRzsLtV2AKk
Donations
LTC - Lgw3s3GzaWgVcCD2H1n2u1bnWHKPFU2SKo | BTC - 1LYMHXxtcyN1JrcSBkXgh1LrRzsLtV2AKk

