Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-02-08, 05:49 PM   #1
walterman
Rayne
 
walterman's Avatar
 
Join Date: Oct 2003
Posts: 1,525
Question Anybody into CUDA ?

I just installed the SDK & Toolkit, and i'm reading the documentation.

The first step is always the hardest -> Build & compile the first project

I'm checking the SDK\Projects samples. In special, there is one called 'cppIntegration'.

I can compile & run all the projects, but, i still dunno how to create a project from zero in Visual Studio.

I think that everybody would like to use standard C++ code, and a call to a CUDA function, to do the hard work.

If somebody has tried these first steps, please, share your knowledge with us
__________________
ASUS Rampage Formula X48 | Xeon 3350 @ 3.6 GHz (450x8/1.26v) | 4x1GB OCZ DDR2 PC2-6400 Reaper CL3 @ 900 MHz 3-4-4-15 | 1 x eVGA GTX 285 SSC | 1 x ASUS EN8800GTX (PhysX/CUDA -> Burnt by nVidia 196.75 driver) | X-Fi Titanium Fatal1ty PCIe | 1 x Intel X25-M G2 80GB | 2 x 750GB WD RE2 7500AYYS SATA2 16MB | Samsung SH-B083L SATA | Enermax Revolution 1250W | Samsung SyncMaster 275T 27" 1920x1200 | Thermaltake Black Armor | BloodRayne 2 FSAA Patch
walterman is offline   Reply With Quote
Old 11-28-08, 11:31 AM   #2
hemmy
Registered User
 
Join Date: Oct 2005
Location: Kansas
Posts: 760
Default Re: Anybody into CUDA ?

I got to about where you are, and just kinda gave up

Indeed it would be easy if we could write it in c/c++
hemmy is offline   Reply With Quote
Old 11-29-08, 06:51 PM   #3
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Anybody into CUDA ?

im pretty sure you need to add a reference to some DLL or something but i cant figure it out either.

the software seems very powerful but damn is it hard to get going
ViN86 is offline   Reply With Quote
Old 11-30-08, 01:53 PM   #4
walterman
Rayne
 
walterman's Avatar
 
Join Date: Oct 2003
Posts: 1,525
Default Re: Anybody into CUDA ?

I'm waiting for the CUDA 2.1 release. I heard that it will support VS 2008, and it is what i'm using now. I need this version, cause i use SSE4 assembler ops in my code. I did some tests with VS 2005, but, i was not able to compare my C++ code with the CUDA code, due the missing SSE4 ops.
__________________
ASUS Rampage Formula X48 | Xeon 3350 @ 3.6 GHz (450x8/1.26v) | 4x1GB OCZ DDR2 PC2-6400 Reaper CL3 @ 900 MHz 3-4-4-15 | 1 x eVGA GTX 285 SSC | 1 x ASUS EN8800GTX (PhysX/CUDA -> Burnt by nVidia 196.75 driver) | X-Fi Titanium Fatal1ty PCIe | 1 x Intel X25-M G2 80GB | 2 x 750GB WD RE2 7500AYYS SATA2 16MB | Samsung SH-B083L SATA | Enermax Revolution 1250W | Samsung SyncMaster 275T 27" 1920x1200 | Thermaltake Black Armor | BloodRayne 2 FSAA Patch
walterman is offline   Reply With Quote
Old 12-01-08, 08:37 AM   #5
nekrosoft13
I'm Geralt
 
Join Date: Oct 2005
Location: Chicagoland, once a year in Poland
Posts: 24,366
Default Re: Anybody into CUDA ?

planning to implement it in your BloodRayne 2 patch?
__________________
Windows 8 the next big failure, right after Windows ME
nekrosoft13 is offline   Reply With Quote
Old 12-01-08, 09:04 AM   #6
jcrox
Mahna Mahna
 
jcrox's Avatar
 
Join Date: Jul 2006
Location: Madison, Wi
Posts: 6,134
Default Re: Anybody into CUDA ?

Quote:
Originally Posted by ViN86 View Post

the software seems very powerful but damn is it hard to get going
My Java instructor who does some sort of research with GPGPUs said the same exact thing about CUDA, it can be a real pain to get it up and running but once you figure it out its apparently some pretty cool stuff.

If anyone does get it up and running please, do tell how you did so... I really want to try it out soon
__________________

Gaming

MSI MPower Z87 | 4770k | CNPS9900MAX-B | 8GB G.Skill 1866 | EVGA GTX760 |ThermalTake 850w | X-Fi Titanium | HAF | Asus PA248Q | Lycosa | Death Adder | Win8 Pro 64

Dev/Backup

MSI GD65 | 2500k | H50 | 8GB G.skill | GTX570 | Ubuntu 13.10

Laptop

17" Inspiron | i5 | 4GB DDR3 | 500GB HDD | Win7 Pro 64

jcrox is offline   Reply With Quote
Old 12-01-08, 12:11 PM   #7
walterman
Rayne
 
walterman's Avatar
 
Join Date: Oct 2003
Posts: 1,525
Default Re: Anybody into CUDA ?

Quote:
Originally Posted by nekrosoft13 View Post
planning to implement it in your BloodRayne 2 patch?
In the benchmark part only.

In the game, i see 2 problems:

1) I dunno if Direct3D 8 will work with CUDA.
2) The game is bounded by the gfx card power (& i do not like to lose frame rate).

Quote:
Originally Posted by jcrox
If anyone does get it up and running please, do tell how you did so... I really want to try it out soon
Once you install VS 2005 & the CUDA SDK, check the 'nvidia cuda sdk\projects\template' folder. It's the most simple project. It works in VS 2005.

My problem is that i already have a full working solution, and i want to add CUDA support to it, and it's a VS 2008 project.
__________________
ASUS Rampage Formula X48 | Xeon 3350 @ 3.6 GHz (450x8/1.26v) | 4x1GB OCZ DDR2 PC2-6400 Reaper CL3 @ 900 MHz 3-4-4-15 | 1 x eVGA GTX 285 SSC | 1 x ASUS EN8800GTX (PhysX/CUDA -> Burnt by nVidia 196.75 driver) | X-Fi Titanium Fatal1ty PCIe | 1 x Intel X25-M G2 80GB | 2 x 750GB WD RE2 7500AYYS SATA2 16MB | Samsung SH-B083L SATA | Enermax Revolution 1250W | Samsung SyncMaster 275T 27" 1920x1200 | Thermaltake Black Armor | BloodRayne 2 FSAA Patch
walterman is offline   Reply With Quote
Old 01-13-09, 06:38 PM   #8
Bad Sector
Registered User
 
Join Date: Jan 2009
Posts: 1
Default Re: Anybody into CUDA ?

I played with CUDA and wrote a bit about it. Its a very interesting technology and once i find some more time i plan to play more with it :-)
Bad Sector is offline   Reply With Quote

Old 01-13-09, 06:51 PM   #9
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Anybody into CUDA ?

i am going to be working with PDE solvers here in grad school, so i may give CUDA a try when i start working on the project.
ViN86 is offline   Reply With Quote
Old 01-15-09, 05:07 PM   #10
Tuork
Official pain in the ass
 
Tuork's Avatar
 
Join Date: May 2003
Location: 127.0.0.1
Posts: 1,197
Send a message via MSN to Tuork
Default Re: Anybody into CUDA ?

Does anyone know any simple guides to get started with CUDA?

CUDA is part of my "want to learn" list for 2009.
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote
Old 01-18-09, 11:39 PM   #11
Bman212121
Registered User
 
Join Date: Jan 2006
Posts: 6,726
Default Re: Anybody into CUDA ?

Quote:
Originally Posted by Some random bot
i m not familiar with CUDA but i want to know some how about it still i think you might have to change your plat forum may be it will work.wish you good luck
Until then you might want to work on your grammar.
Bman212121 is offline   Reply With Quote
Old 02-19-09, 01:54 PM   #12
walterman
Rayne
 
walterman's Avatar
 
Join Date: Oct 2003
Posts: 1,525
Arrow Re: Anybody into CUDA ?

Finally, i have the whole thing working: VS 2008 + CUDA 2.1.

The setup to create a new project, by hand, is not very easy, and i lost a lot of time trying to compile my first program with success.

This is a quick guide, from my personal experiences:
  • Download & Install CUDA 2.1 & the CUDA SDK, from the nVidia site.

  • Open VS 2008, and start a new C++ Win32 Console project.

  • Right click in the name of the project in the solution explorer, and select 'Custom Build Rules'. A new window will open. Click on 'import' and select the file "C:\CUDA SDK\common\CUDA.rules". Then mark the checkbox for the CUDA files.

  • Rename the main .cpp file to .cu

  • Right click on the .cu file and select 'properties'. Select 'CUDA Build Rule 2.1.0' in General - Tool.

  • Open the properties of the project, and change:


    C++
    General

    • Additional include directories: $(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc
    • Debug Information Format: Program Database (/Zi)

    Code Generation

    • Runtime Library: Multi-threaded Debug (/MTd)

    Linker
    General

    • Enable incremental linkin: No (/INCREMENTAL:NO)
    • Additional Library Directories: $(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib

    Input

    • Additional Dependencies: cudart.lib cutil32D.lib

    Optimization

    • Enable COMDAT folding: Do Not Remove Redundant COMDATs (/OPT:NOICF)

Then, edit your .cu file, and put your kernel there.

I tried my perlin code on the GPU, and, atm, it sucks. It's slightly faster than my multi-threaded SSE3 code, and this gfx card has 240 'cores', vs my quad. Obviously, i need to learn some CUDA tricks to speed up my code, because this cannot be so slow.

Also, i still dunno how to debug the CUDA code. It's a pain in the ass atm when something does not work.
__________________
ASUS Rampage Formula X48 | Xeon 3350 @ 3.6 GHz (450x8/1.26v) | 4x1GB OCZ DDR2 PC2-6400 Reaper CL3 @ 900 MHz 3-4-4-15 | 1 x eVGA GTX 285 SSC | 1 x ASUS EN8800GTX (PhysX/CUDA -> Burnt by nVidia 196.75 driver) | X-Fi Titanium Fatal1ty PCIe | 1 x Intel X25-M G2 80GB | 2 x 750GB WD RE2 7500AYYS SATA2 16MB | Samsung SH-B083L SATA | Enermax Revolution 1250W | Samsung SyncMaster 275T 27" 1920x1200 | Thermaltake Black Armor | BloodRayne 2 FSAA Patch
walterman is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
New MacBook Pros Make For Great CUDA Dev Platforms News Archived News Items 0 06-15-12 01:40 AM
GPU-sphere Swells With 26 New CUDA Centers News Archived News Items 0 06-11-12 02:50 PM
Allinea DDT CUDA Education Pack for Student Programmers News Archived News Items 0 05-25-12 09:00 AM
Panoptes: A Binary Translation Framework for CUDA News Archived News Items 0 05-22-12 05:50 AM
First Achievement Award Bestowed By CUDA Centers of Excellence News Archived News Items 0 05-17-12 08:40 AM

All times are GMT -5. The time now is 04:37 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.