logo

Crowdly

Технології розподілених систем та паралельних обчислень [02812]

Looking for Технології розподілених систем та паралельних обчислень [02812] test answers and solutions? Browse our comprehensive collection of verified answers for Технології розподілених систем та паралельних обчислень [02812] at vns.lpnu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Що виконує нижче наведена програма?

#include <iostream>

#include <omp.h>

int main()

}

std::cout

<< "Proc: "<< omp_get_num_procs()

<< "М_threads: "<<

omp_get_thread_limit()

<< std::endl;

{

View this question

Які моделі паралельного програмування реалізовані в стандарті OpenMP?

View this question

Що виконує функція (int/logical) omp_in_parallel()

View this question

Коли ініціалізуються змінні, що включені в список директив threadprivate

0%
View this question

З того значення яке задасть користувач

View this question

Дано фрагмент OpenMP – програми

void main()

{

  int a,b,c,d;

#pragma omp parallel

   private (c) shared (d,e)

{

  int e,f;

  …

}

  …

}

Вкажіть

всі змінні, що являються приватними

View this question

В нижче наведеній програмі

#include <omp.h>

int alpha [10], beta[10], i

 #pragma omp threadprivate (alpha)

 main ( )

{

      omp_set_dynamic (0);

 #pragma omp parallel private (i, beta)

      for (i=0; i<10; i++)

         alpha =

beta = i;

#pragma omp parallel

      printf ("alpha[3]=%d and

beta [3] =%d\n", alpha[3], beta[3]);

}

Для скасування динамічного режиму використовується

View this question

Що виконує функція (void) omp_set_dynamic( TRUE | FALSE )

View this question

Даний фрагмент OpenMP-програми:

#pragma omp директива

{

  оператори

}

 Вкажіть директиви, з якими оператори паралельної ділянки не

будуть виконуватися одночасно двома або більше потоками.

View this question
Даний фрагмент OpenMP

-програми:

#pragma omp директива

{

оператори

}

Вкажіть директиви, з якими оператори паралельної ділянки  будуть

виконуватися тільки одним потоком.

View this question

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!