Jump to content
  • Advertisement
Sign in to follow this  
akhin

OpenMP Questions for multiple core s & Xbox 360

This topic is 2687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi ,



I have some confusions of execution details of "OpenMp`ed" code or in other words codes parallezied by using OpenMP pragmas.



1. Let`s assume that we have a dual core processor : to myknowledge for PC , what you can do is setting `number of threads` , so it might not be guaranteed that

if you run 2 OpenMp threads , they will run on different cores , unless you set SetAffinity , is this correct ?



2. What about OpenMp`s execution details on Xbox360 Since there are 3 processors , all supports hyperthreading , makes it 6 hardware threads

So what are the options for this case ?

Share this post


Link to post
Share on other sites
Advertisement

1. Let`s assume that we have a dual core processor : to myknowledge for PC , what you can do is setting `number of threads` , so it might not be guaranteed that

if you run 2 OpenMp threads , they will run on different cores , unless you set SetAffinity , is this correct ?


You don't even have to set the number of threads: By default OpenMP will create 2 threads if you have 2 cores. The OS will use both cores to run those threads, although the mapping from threads to cores may not remain constant throughout the life of the threads. This is a detail that shouldn't concern you much.

If you want a different number of threads (perhaps hyperthreading makes OpenMP spawn more threads than there are cores, which for some applications doesn't quite work), you can specify it explicitly by calling omp_set_num_threads.

Share this post


Link to post
Share on other sites

Any tips from industry people who have used XDK ?


No, because the XDK is pretty heavily NDA'd so there is little to nothing anyone can say about it that isn't out there in the public docs for things like XNA etc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!