<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.osll.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Open Source &amp; Linux Lab students:high_performance_test</title>
        <description></description>
        <link>http://wiki.osll.ru/</link>
        <lastBuildDate>Wed, 08 Jul 2026 23:07:42 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>http://wiki.osll.ru/lib/tpl/dokuwiki/images/favicon.ico</url>
            <title>Open Source &amp; Linux Lab</title>
            <link>http://wiki.osll.ru/</link>
        </image>
        <item>
            <title>students:high_performance_test:question_1</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_1?rev=1470517452&amp;do=diff</link>
            <description>dumb: полагаю, 1, поскольку допустить ее проще всего.

	*  2 -- из моей практики, более редкая чем 1.
	*  3 -- не ошибка</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:04:12 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_2</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_2?rev=1470517468&amp;do=diff</link>
            <description>Ответ 3. Первые два варианта показывают одно и то же - интенсивность использования потоков, а последний - это ускорение, если я правильно поняла символ</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:04:28 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_3</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_3?rev=1470517479&amp;do=diff</link>
            <description>kvm: i=1. private(i) означает, что далее i - локальная переменная потока.

kel: +1 

kvm: -1 :) в спецификации - значение переменной, объявленной в private, на выходе из блока имеет неопределенное значение. Пример A.21</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:04:39 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_4</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_4?rev=1470517487&amp;do=diff</link>
            <description>dumb: i=5. все в соответствии с п. 2.7.2.3 и 2.4.1</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:04:47 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_5</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_5?rev=1470517494&amp;do=diff</link>
            <description>dumb: я думаю, j=5. и только из-за оговорки “при выполнении в один поток”. никакие директивы j не портят.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:04:54 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_6</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_6?rev=1470517505&amp;do=diff</link>
            <description>dumb: я думаю, “конкурентный доступ к данным делает результат непредсказуемым”. не “значение переменной j после выполнения параллельного участка кода не определено</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:05 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_7</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_7?rev=1470517525&amp;do=diff</link>
            <description>kel: в результате получается взаимная блокировка при числе потоков &gt;1. Что и понятно, так как в случае
одного потока все потоки (то есть 1 с id=0) доходят до барьера и продолжают свои дела. Из теории ответ ясен по первым страницам спецификации openmp (описание barrier).</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:25 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_8</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_8?rev=1470517531&amp;do=diff</link>
            <description>Ответ 3. psum и my_id объявляются в блоке, i становится локальной из-за параллельного выполнении for --- kvm 2007/09/27 23:56</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:31 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_9</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_9?rev=1470517537&amp;do=diff</link>
            <description>Ответ 5. Для поиска hot spots используется VTune Performance Analyzer  --- kvm 2007/09/28 00:19 

kel: +1. Документация ThreadChecker: 
Thread Checker identifies the following diagnostics and potential issues such as:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:37 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_10</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_10?rev=1470517543&amp;do=diff</link>
            <description>dumb:

	*  Thread profiler входит в состав VTune: &lt;http://www.intel.com/cd/software/products/asmo-na/eng/286749.htm&gt; ,  &lt;http://www.intel.com/cd/software/products/asmo-na/eng/219898.htm&gt;
	*  не 2: Intel® Integrated Performance Primitives (Intel® IPP) is an extensive library of multi-core-ready, highly optimized software functions for multimedia and data processing applications.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:43 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_11</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_11?rev=1470517549&amp;do=diff</link>
            <description>dumb: по идее, 2 и 3. не 1, конкретные переменные -- это уже кодирование.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:49 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_12</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_12?rev=1470517556&amp;do=diff</link>
            <description>kel: Думаю ответ 4 -  (стр. 8 п. 2.1) - кроме него по условию уже всё сделано.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:05:56 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_13</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_13?rev=1470517568&amp;do=diff</link>
            <description>Ответ 3. При k=0 итерации независимы  --- kvm 2007/09/28 00:24</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:08 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_14</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_14?rev=1470517575&amp;do=diff</link>
            <description>kel: &lt;http://www.intel.com/support/performancetools/libraries/mkl/sb/cs-017177.htm&gt; - Intel MKL is threaded in a number of places: LAPACK (*GETRF, *POTRF, *GBTRF routines), Level 3 BLAS, DFTs, and FFTs. Intel MKL uses OpenMP* threading software. There are situations in which conflicts can exist that make the use of threads in Intel MKL problematic. We list them here with recommendations for dealing with these. First, a brief discussion of why the problem exists is appropriate.
То есть 3 - видимо…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:15 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_15</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_15?rev=1470517581&amp;do=diff</link>
            <description>dumb: полагаю, 2.

	*  2 -- это более эффективно чем 1, поскольку должно уменьшиться количество потоков, борющихся за каждую критическую секцию.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:21 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_16</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_16?rev=1470517587&amp;do=diff</link>
            <description>kel: По скольку речь идёт именно о фазе распараллеливания то хотят услышать 1 ответ. 
&lt;http://www.intel.com/cd/ids/developer/asmo-na/eng/dc/tools/analyzer/57327.htm?page=3&gt; - Locating Thread Contention with VTune™ Performance Analyzer. Хотя в документации практически на первой странице пропогандируется использование профилировщика для поиска критических путей.…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:27 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_17</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_17?rev=1470517598&amp;do=diff</link>
            <description>dumb: мне кажется, ответы 2 и 4.

	*  не 1: в openmp тоже только разделение и слияние.
	*  не 3: openmp содержит средства синхронизации, а о средствах межпроцессной коммуникации в pthreads я не слышал.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:38 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_18</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_18?rev=1470517608&amp;do=diff</link>
            <description>dumb: ответ 2. &lt;http://shareit.intel.com/WikiHome/Articles/111111288/Tutorial.pdf&gt; , стр. 28</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:48 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_19</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_19?rev=1470517617&amp;do=diff</link>
            <description>dumb: думаю, ответ 1.
доп. информация: &lt;http://www.nersc.gov/vendor_docs/intel/c_ug/lin1139.htm&gt;
1. мне кажется, ни 2 ни 3 ни 4 не подходят по синтаксису конструкции task в строке 5. 
2. ответ 1 дает каждому task cобственую копию переменной p в момент её (task) создания.
3. ответ 2 разрушает цикл, придавая p начальное значение NULL.
4. ответ 3: масло масляное. и так task выполняются параллельно внутри taskq. а вот собственную копию p они в этом случае не получат.
5. ответ 4: ordered в taskq не и…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:06:57 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:question_20</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:question_20?rev=1470517622&amp;do=diff</link>
            <description>kel: 1) Interlocked-функции - &lt;http://rosigma.com/82.aspx&gt;: Другой важный аспект, связанный с Interlocked-функциями, состоит в том, что они выполняются чрезвычайно быстро. Вызов такой функции обычно требует не более 50 тактов процессора, и при этом не происходит перехода из пользовательского ре жима в режим ядра (а он отнимает не менее 1000 тактов).…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:07:02 +0000</pubDate>
        </item>
        <item>
            <title>students:high_performance_test:results</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:results?rev=1470518802&amp;do=diff</link>
            <description>Вопрос kvm  bea kel  dumb 1      1    1   1   1 2      2    1   1   3 3      4    4   4   4 4      3    3   3   3 5      2    2   2   2 6      3    3   3   3 7      4    4   4   4 8      3    3   3   3 9      5    5   5   5 10     1    1   1   2</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:26:42 +0000</pubDate>
        </item>
        <item>
            <title>Тест по hpc</title>
            <link>http://wiki.osll.ru/doku.php/students:high_performance_test:start?rev=1470519148&amp;do=diff</link>
            <description>Тест по hpc

	*  question_1
	*  question_2
	*  question_3
	*  question_4
	*  question_5
	*  question_6
	*  question_7
	*  question_8
	*  question_9
	*  question_10
	*  question_11
	*  question_12
	*  question_13
	*  question_14
	*  question_15
	*  question_16
	*  question_17
	*  question_18
	*  question_19
	*  question_20

	*  [Спецификация openmp]

	*  [Threading Methodology: Principles and Practices]
	*  &lt;http://www.macro.aaanet.ru/apnd_12.html&gt; - часть спецификации на руском

Результаты тесто…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>students:high_performance_test</category>
            <pubDate>Sun, 07 Aug 2016 00:32:28 +0000</pubDate>
        </item>
    </channel>
</rss>
