Тёмный

Introduction to tasks 

Introduction to Parallel Programming in OpenMP
Подписаться 2,8 тыс.
Просмотров 9 тыс.
50% 1

To access the translated content:
1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/tr...
The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video.
Your feedback is highly appreciated. Kindly fill this form forms.gle/XFZh...
2. Regional language subtitles available for this course
To watch the subtitles in regional languages:
1. Click on the lecture under Course Details.
2. Play the video.
3. Now click on the Settings icon and a list of features will display
4. From that select the option Subtitles/CC.
5. Now select the Language from the available languages to read the subtitle in the regional language.

Опубликовано:

 

17 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@rajeevgupta4058
@rajeevgupta4058 Год назад
what about the cache data that is needed in a certain tast? when tast is free to be executed at any time, the caches might not have required data.
@shahoodamir3829
@shahoodamir3829 2 года назад
please share the source code
@SumriseHD
@SumriseHD 2 месяца назад
#include #define ARR_SIZE 600 #define STEP_SIZE 100 #include int main() { /* Computing Array sum using tasks */ int i; int sum = 0; #pragma omp parallel { int a[ARR_SIZE]; #pragma omp for for (i = 0; i < ARR_SIZE; i += STEP_SIZE) { int j, start = i, end = i + STEP_SIZE - 1; printf("Computing Sum(%d,%d) in thread %d of %d ", start, end, omp_get_thread_num(), omp_get_num_threads()); #pragma omp task { int psum = 0; printf("Task computing Sum(%d,%d) in thread %d of %d ", start, end, omp_get_thread_num(), omp_get_num_threads()); for (j = start; j
Далее