Introduction to Parallel Programming in OpenMP
Introduction to Parallel Programming in OpenMP
  • Видео 40
  • Просмотров 624 481
Assignment 2 (Week 2) Solutions
Yogish Sabharwal
Просмотров: 1 818

Видео

Locks
Просмотров 5 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
The OpenMP Shared Memory Consistency Model
Просмотров 4,2 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Advanced Task handling
Просмотров 2,8 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Matrix Multiplication using tasks
Просмотров 4,7 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Parallel LU Factorization
Просмотров 8 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Understanding LU Factorization
Просмотров 4,6 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Assignment 1 Solutions
Просмотров 1,2 тыс.7 лет назад
Assignment 1 Solutions
Recursive task spawning and pitfalls
Просмотров 3,8 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Completion of tasks and scoping variables in tasks
Просмотров 2,9 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Accessing variables in tasks
Просмотров 3,3 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Task queues and task execution
Просмотров 5 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Introduction to tasks
Просмотров 9 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Matrix-Matrix operations (Matrix-Matrix Multiply)
Просмотров 16 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Matrix-Vector operations (Matrix-Vector Multiply)
Просмотров 14 тыс.7 лет назад
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation 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 ...
Vector-Vector operations (Dot product)
Просмотров 9 тыс.7 лет назад
Vector-Vector operations (Dot product)
Distributing for loops and reduction
Просмотров 11 тыс.7 лет назад
Distributing for loops and reduction
Manual distribution of work and critical sections
Просмотров 8 тыс.7 лет назад
Manual distribution of work and critical sections
Computing sum: first attempt at parallelization
Просмотров 12 тыс.7 лет назад
Computing sum: first attempt at parallelization
Shared Memory Consistency Models and the Sequential Consistency Model
Просмотров 22 тыс.7 лет назад
Shared Memory Consistency Models and the Sequential Consistency Model
OpenMP: thread private variables and more constructs
Просмотров 12 тыс.7 лет назад
OpenMP: thread private variables and more constructs
OpenMP: Scoping variables and some race conditions
Просмотров 10 тыс.7 лет назад
OpenMP: Scoping variables and some race conditions
Race Conditions
Просмотров 10 тыс.7 лет назад
Race Conditions
OpenMP: About OpenMP
Просмотров 15 тыс.7 лет назад
OpenMP: About OpenMP
OpenMP: Basic thread functions
Просмотров 24 тыс.7 лет назад
OpenMP: Basic thread functions
Context Switching
Просмотров 10 тыс.7 лет назад
Context Switching
Program Memory with Multiple threads and Multi-tasking
Просмотров 14 тыс.7 лет назад
Program Memory with Multiple threads and Multi-tasking
Program with Single thread
Просмотров 18 тыс.7 лет назад
Program with Single thread
OpenMP: A parallel Hello World Program
Просмотров 45 тыс.7 лет назад
OpenMP: A parallel Hello World Program
Interconnection networks in Distributed Memory architectures
Просмотров 23 тыс.7 лет назад
Interconnection networks in Distributed Memory architectures

Комментарии

  • @ramesherrabolu1590
    @ramesherrabolu1590 3 дня назад

    Are there systems in real life that present, from programming point of view, a Distributed Memory system as if it were a Shared Memory system.

  • @ashishgor2163
    @ashishgor2163 22 дня назад

    Thank u sir

  • @ming9638
    @ming9638 2 месяца назад

    This is an amazing course!

  • @KendriyaVidyalaya-e4z
    @KendriyaVidyalaya-e4z 3 месяца назад

    Great job explaining the concepts clearly!

  • @GabrielMichael-j4q
    @GabrielMichael-j4q 9 месяцев назад

    Smart Aliens is a project with great potential feelings excited to be part of this community #ETH, #ETHEREUM, #ARBITRUM, #ARB, and #ALTCOIN.

  • @datasmith4294
    @datasmith4294 Год назад

    Turn down the decibels pls.

  • @alsgzika6977
    @alsgzika6977 Год назад

    Amazing thanks

  • @yeni_nick
    @yeni_nick Год назад

    So what is the solution if sequential consistency model dictate so much constraints on the compiler? Will we just live with the decrease on performance?

  • @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.

  • @samaelcode4094
    @samaelcode4094 Год назад

    sir my question is can we avoid a for loop and call the omp_get_num_threads() just once? , I was trying to do it, but i failed, or it is explained in upcoming videos?

  • @saicharan4669
    @saicharan4669 2 года назад

    Thank you sir , the video was very informative

  • @andrejrockshox
    @andrejrockshox 2 года назад

    which language is this?

  • @hampazu
    @hampazu 2 года назад

    Very helpful 👍

  • @yuqingcui258
    @yuqingcui258 2 года назад

    Really helpful!!! Thanks a lot.

  • @dexashish
    @dexashish 2 года назад

    what is the intro music its so addictive !

  • @Irshadgbl
    @Irshadgbl 2 года назад

    ruclips.net/channel/UCdBufqFbamF48hdZ-dmSgnw 🍁🚀Make education easy learn more ❤️

  • @zhaonanmeng7625
    @zhaonanmeng7625 2 года назад

    Impressive video!

  • @chandanhegde5183
    @chandanhegde5183 2 года назад

    Nice lecture!

  • @sharminsultana4643
    @sharminsultana4643 2 года назад

    Thank You sir

  • @shahoodamir3829
    @shahoodamir3829 2 года назад

    please share the source code

    • @SumriseHD
      @SumriseHD 5 месяцев назад

      #include <omp.h> #define ARR_SIZE 600 #define STEP_SIZE 100 #include <stdio.h> 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 <= end; j++) { psum += a[j]; } #pragma omp critical sum += psum; } printf("Sum=%d ", sum); } } }

  • @inglesjest
    @inglesjest 2 года назад

    Does this you tube channel has all subjects of cse in gate exam???

  • @techhub9314
    @techhub9314 2 года назад

    Thanks Sir.

  • @harishsubramaniangopal6463
    @harishsubramaniangopal6463 2 года назад

    Superb !!

  • @atulavhad8198
    @atulavhad8198 2 года назад

    Where do we find the slides for the course?

  • @samiksharamteke2855
    @samiksharamteke2855 2 года назад

    I thought it would be difficult but it is damn easy.

  • @shivammehta9661
    @shivammehta9661 2 года назад

    I have a doubt, dot is a shared variable so I don't think the program will produce the required output as there will be race condition involved, If somebody could clear this, that would be very greatful

    • @gunjankumar1943
      @gunjankumar1943 2 года назад

      Yeah. reduction(+:dot) should be put up as a clause for the code to work.

  • @aarav3184
    @aarav3184 2 года назад

    Explained well

  • @whynesspower
    @whynesspower 2 года назад

    Same thumbnail colors represent same week lectures.

  • @tarunpahuja3443
    @tarunpahuja3443 2 года назад

    This is how concurrenthashmap is implemented in java by having lock per segment.

  • @tarunpahuja3443
    @tarunpahuja3443 2 года назад

    Amazing Lecture series. IF you could provide more details on cache coherence. IT would be cherry on the top.

    • @tarunpahuja3443
      @tarunpahuja3443 2 года назад

      And thanks to all students for asking good questions. That answers many of my questions too.

  • @tarunpahuja3443
    @tarunpahuja3443 2 года назад

    How to have different number of threads across different parallel region. If i have 4 threads in first parallel region and 3 threads in second parallel region, which one going to be killed (first or fourth one).

  • @tarunpahuja3443
    @tarunpahuja3443 2 года назад

    Didnt get why it took 100 ns for first 4 bytes but just 5 ns for next 4 bytes. Should not it be same for all bytes ?

    • @hrs7305
      @hrs7305 2 года назад

      You are pipelining the data transfer through the bus so essentially all the memory 4 byte memory transfers took 100ns but 2nd memory transfer occurs 5ns after the 1st and so on

  • @Aditya-ot7ib
    @Aditya-ot7ib 3 года назад

    wow this is amazing.

  • @Aditya-ot7ib
    @Aditya-ot7ib 3 года назад

    again great lecture!

  • @Aditya-ot7ib
    @Aditya-ot7ib 3 года назад

    Excellent lecture Sreries, If you have knowledgw of OS, Computer Architecture then learning Prallel programming is very intresting

  • @wandersongomes8405
    @wandersongomes8405 3 года назад

    Conteudo incrivel. Nao entendo o idioma, mas o codigo e muito show.

  • @abelashenafi6291
    @abelashenafi6291 3 года назад

    One of the most interesting lectures I've seen in a while. I could only imagine how lucky your students are. Kudos!!

  • @chchand1092
    @chchand1092 3 года назад

    really awesome

  • @ahmadshahba3340
    @ahmadshahba3340 3 года назад

    Just a word of caution! #pragma omp master does not have an implied barrier either on entry to, or exit from, the master construct.

  • @blueninja42069
    @blueninja42069 3 года назад

    thank you for the subtitles!

  • @bendoe408
    @bendoe408 3 года назад

    Very good lecture. Thank you very much.

  • @mohdzain1741
    @mohdzain1741 3 года назад

    What is a branch instruction?

    • @tarunpahuja3443
      @tarunpahuja3443 2 года назад

      Branching statements are like if statement, for, while loop etc. Think of it as if(flag1) {flag2 = true}. The second statement "flag2=true" is dependent on the execution of flag1 instruction. if flag2 is in pipeline and flag1 turns out to be false, second statement will be thrown away. Which basically means wastage of cpu cycles spent on processing flag=true.

  • @Shelly-kx2wz
    @Shelly-kx2wz 3 года назад

    Really helpful explanation.

  • @Bardhan02
    @Bardhan02 3 года назад

    you are the Best teacher sir , make some more videos on computer organization and architecture please sir

  • @smwikipediasmwikipedia5762
    @smwikipediasmwikipedia5762 3 года назад

    Great intro, thanks!

  • @irocx8745
    @irocx8745 3 года назад

    Great explanation sir 💯

  • @aniketmane1742
    @aniketmane1742 3 года назад

    Thank you sir, this really helps me a lot.

  • @ramkrishansharma9821
    @ramkrishansharma9821 4 года назад

    Awesome way of teaching , Thanks a lot !!

  • @ritikpratapsingh9128
    @ritikpratapsingh9128 4 года назад

    The problem is with recursion. How brilliant the student must be. I thought all the 3 same problems that might occur but recursion was no where in my mind.

  • @harinijeyaraman8789
    @harinijeyaraman8789 4 года назад

    Isn't the bisection bandwidth of a 2D Torus sqrt n ?