سؤال

يمكنني استخدام الأمر الحالي لتقديم وظائف MPI: اسم ملف معالجات MPIRUN -NP NO.NAP

فهمي هو أن الأمر أعلاه يتيح لي أن يقدم إلى 4 معالجات مستقلة تتواصل عبر MPI. ومع ذلك، في إعدادنا، يحتوي كل معالج على 4 نوى تذهب غير المستخدمة وبعد الأسئلة التي تلقيتها ما يلي:

  1. هل من الممكن إرسال وظيفة لتشغيلها على النوى المتعددة على نفس العقدة أو العديد من العقد من سطر أوامر MPI Run؟ إذا كان الأمر كذلك كيف؟

  2. هل يتطلب ما سبق أي تعليقات خاصة / إعداد داخل الكود؟ أفهم من قراءة بعض الأدب أن وقت الاتصال بين النوى يمكن أن يختلف عن بين المعالجات، لذلك يتطلب البعض التفكير في كيفية توزيع المشكلة ... ولكن لهذه المشكلة؟ ماذا يحتاج المرء إلى تقدير ل؟

  3. أخيرا، هل هناك حد لمقدار كمية البيانات المنقولة؟ هل هناك حد على مقدار البيانات التي يمكن للحافلة إرسالها / تلقيها؟ هل هناك قيود على ذاكرة التخزين المؤقت؟

    شكرا!

هل كانت مفيدة؟

المحلول

So 1 is a question about launching processes, and 2+3 are questions about, basically, performance tuning. Performance tuning can involve substantial work on the underlying code, but you won't need to modify a line of code to do any of this.

What I understand from your first question is that you want to modify the distribution of the MPI processes launched. Doing this is necessarily outside the standard, because it's OS and platform dependant; so each MPI implementation will have a different way to do this. Recent versions of OpenMPI and MPICH2 allow you to specify where the processors end up, so you can specify two processors per socket, etc.

You do not need to modify the code for this to work, but there are performance issues depending on core distributions. It's hard to say much about this in general, because it depends on your communication patterns, but yes, the "closer" the processors are, the faster the communications will be, by and large.

There's no specified limit to the total volume of data that goes back and forth between MPI tasks, but yes, there are bandwidth limits (and there are limits per message). The cache size is whatever it is.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top