PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

GPU does not work why?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
SWL_EGGBABY



Joined: 16 Dec 2009
Posts: 31

PostPosted: Mon Mar 01, 2010 6:49 pm    Post subject: GPU does not work why? Reply with quote

Hi Mat,

The running results:

invalid device function

no error

Results:
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15
-1.1893121E+30 NaN -4.8118640E-35 -1.7518910E-15

what is the invalid device function,I do not understand,please help me,thank you!
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Wed Mar 03, 2010 1:02 pm    Post subject: Reply with quote

Hi SWL_EGGBABY,

Try using the Telsa card instead of the FX5800. i.e. add "istat = cudaSetDevice(1)" to your main program. Also, you'll need to declare "istat" and add "use cudafor".

Hope this helps,
Mat
Back to top
View user's profile
SWL_EGGBABY



Joined: 16 Dec 2009
Posts: 31

PostPosted: Wed Mar 03, 2010 8:11 pm    Post subject: GPU does not work why? Reply with quote

Hi Mat,

I can't use both of my tow cards,They are both display invalid device function.

I use the samples sgemm.cuf test them:

\nDevice:Quadro FX 5800, 1296.0 MHz clock, 4095.7 MB memory.\n
invalid device function
65536 errors were encountered
256x256 * 256x256:\t 0.007 ms\t4644.484 GFlops/s
请按任意键继续. . .

\nDevice:Tesla C1060, 1296.0 MHz clock, 4095.8 MB memory.\n
invalid device function
38560 errors were encountered
256x256 * 256x256:\t 0.008 ms\t4309.860 GFlops/s
请按任意键继续. . .

Oh my tow bad cards!
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Thu Mar 04, 2010 5:19 pm    Post subject: Reply with quote

Hi SWL_EGGBABY,

Quote:
Oh my tow bad cards!
I doubt your cards are bad, rather it's more likely a configuration issue, like a driver problem. Exactly what, unfortunately I don't know.

My next step would be to call the "cudaGetDevice" and "cudaGetDeviceProperties" to see what is returned. Also, what NVIDIA drivers are you using? Are they CUDA 2.3 capable (version >= 190)?

- Mat
Back to top
View user's profile
SWL_EGGBABY



Joined: 16 Dec 2009
Posts: 31

PostPosted: Fri Mar 05, 2010 12:00 am    Post subject: please help me ,thank you! Reply with quote

Hi Mat,

Thank you.
It'is a driver problem,I download and installed the new driver,everything is fine now.
Thank you again for help me so much.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group