Click here to Skip to main content
15,879,535 members

CUDA question in C#

Zvi H asked:

Open original thread
I'm new to this forum.. Updated as a new post by mistake.. sorry..

Hello

I know some basic C# and I wrote a program.
The program consumes the CPU due to a lot of calculations.
I took an i7-2600K and it still would take me several years to finish processing..

A friend told me that I can send massive calc to the GPU. After reading about it online I realized that this is the only possible solution for me.
I took an NVIDIA 470 and tried to use it with several DLL's with not much of understanding in how it's done.

Basically, I have a foreach loop that I need to send to the GPU
When it was multicored it was simple - I just changed the syntax to
parallel.Foreach, but to the GPU - I don't really understand how it's done without
changing the entire code - I just want to rap it so just part of it
will be send to the GPU.

Any thoughts ??

Please remember I'm new in this - explain me like I'm retarded :)

Many thanks,
Zvi
Tags: C#

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900