CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

A certain number of SM in CUDA to simulate.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2012, 05:13
Smile A certain number of SM in CUDA to simulate.
  #1
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
Dear CUDA programmers,
I am a CUDA newbie, and in my project I want to teat CUDA by simulating a heat conduction problem. More precisely, I want to select a certain number of SM to simulate the same heat conduction problem each time. Since I remember that in MPI I can use a command like "mpirun -np 4 helloworld" to assign a certain number of processors to run my program, I guess CUDA would also have this property. My GPU is Geforce 210M and it has 2 SM. I want to test only 1 SM to simulate my heat conduction problem. Would I accomplish this job? Is it possible?

Let me put my consideration here:

Is it correct? Or are there some API I can use to accomplish my job?
Thank you in advance!

Actually, I posted this question in OpenFoam section and no reply. I guess I should have not put my question there. So, I turn to this seciton. Please give me any of your opinion. Thank you!
aerosjc is offline   Reply With Quote

Old   December 4, 2012, 18:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings aerosjc,

It looks like you shouldn't be bothered with selecting a specific SM, at least from what I understand from the following description: http://stackoverflow.com/a/13463297

If you were dealing with 2 GPUs in the same card, then this would probably be the answer: https://devtalk.nvidia.com/default/t...grammatically/

Best regards,
Bruno

PS: Since you've created this thread here, I removed the thread you had at the OpenFOAM forum
__________________
wyldckat is offline   Reply With Quote

Old   December 6, 2012, 21:20
Default
  #3
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
Dear Bruno,
Many thanks to you! The page in StackOverflow helps me a lot.
But somebody tells me that there is a PTX special variable smid I can check.(from this page: https://devtalk.nvidia.com/default/t...-to-simulate-/)
aerosjc is offline   Reply With Quote

Reply

Tags
cuda, gpu, parallel computing


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
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to let the mesh motion solver just solve a small region near a moving boundary? zhajingjing OpenFOAM Running, Solving & CFD 9 April 28, 2016 05:15
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40
Courant number, patches, etc oort OpenFOAM 1 July 24, 2009 19:05
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
meshing F1 front wing Steve FLUENT 0 April 17, 2003 13:37


All times are GMT -4. The time now is 08:51.