Parallel Programming Club : Enabling OpenMP in Windows using Code::Blocks

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • This is a visual Walkthrough for enabling OpenMP 3.0 in Windows
    using the Integrated Development Environment Code::Blocks 10.05
    to download code::Blocks for windows go here:
    www.codeblocks....
    To get the GNU minGW GCC/G++ installer go here:
    sourceforge.net...
    *UPDATE*
    To make things easier, when you choose a destination for your
    new MinGW folder. Select the code::blocks folder. this will make it
    faster than copy+paste
    Only Contra Costa College Students can join the
    Prallel Programming Club, so the club Moodle isn't accessible to all.
    This is a redo of a previous version that was a minute longer, with
    less than excellent audio settings. although the audio is not perfect here
    either, its able to be understood.
    Just some added info, the original minGW folder in code::blocks has
    libraries for Pthreads which is another free shared memory parallel
    programming API. but it is heavily reliant on function calls, and requires your
    code to be dramatically altered from what I understand, unlike OpenMP
    which uses #pragmas which are special comments. if you are lazy,
    you could maybe just find libgomp-1.dll and link it, and not worry about the
    minGW installer.
    Everything I showed to download is FREE or OPEN SOURCE!
    Professor Murphy gave me permission to show his slides to the club!
    This was uploaded by Michial Green II, President of the Parallel Programming
    Club at contra Costa College. I am a first year C++ programmer, so I cannot
    yet solve some problems, or answer any advanced questions about parallel
    programming, I only pass along what I find out to the Club, because we all
    want to learn. Happy Coding がんばって下さい!!

КОМЕНТАРІ • 80

  • @mavenuparker
    @mavenuparker 4 роки тому +32

    It's 2020 and we are still trying to figure out the same things.

  • @rad6014
    @rad6014 4 роки тому +23

    "If you waching this video in 2020" got me emotional

  • @mzm5621
    @mzm5621 4 роки тому +1

    I got goosebumps when he said 2020 but the video is 10 YEARS AGO!

  • @aniketmane1742
    @aniketmane1742 3 роки тому +1

    Its 2020 and our college professor still asked us to refer this video.........thanks man.

  • @126grc
    @126grc 6 років тому +2

    Great work! For me, the turning point was finding the link to download 'minGW' (or mingw-get-setup.exe). There are so many minGW installers out there! Now, I can proceed with parallelizing my code. Thanks a lot.

  • @Radild1
    @Radild1 5 років тому +1

    these are the most helpful instructions i have found on the internet. im still in shock you helped me set up parallel programming after i've struggled for 3 weeks. thanks so much.
    and i just checked out your other videos, i enjoy the nintendo gameplay, but you really should put up more instructional videos.

  • @vmichial
    @vmichial  12 років тому

    I'm glad to see this video is helping people after this time, you are all welcome.

  • @cguser
    @cguser 5 років тому +13

    actually it's a useful video in 2019 :)

  • @ashutoshtiwari4398
    @ashutoshtiwari4398 7 років тому

    Thank you buddy . I wasted nearly a week trying to code in openmp via linux through virtual box but virtual box was so slow that I couldn't​ even install Linux properly . Well this was fast and systematic.

  • @felipefernandes1019
    @felipefernandes1019 Рік тому

    2022 and it still works fine for me, thanks for the video bro!

  • @parsaasemi4415
    @parsaasemi4415 Рік тому

    Thank you very very much! this is still working in 2023!

  • @gabrielviannasr
    @gabrielviannasr 6 років тому

    Thanks a lot! In DevC++ I did this: Menu -> Project -> Projetc Option (Ctrl + H) -> Parameters -> Linker -> Add Library or object. And looked for "libgomp.dll.a".

  • @erenackerman9681
    @erenackerman9681 4 роки тому +1

    It's 2020 and it's still useful.
    Thanks mate👍

  • @figimigihey9139
    @figimigihey9139 10 місяців тому

    MAAAAN Yeah, thanks a lot. you are number #1, you are millions of time better than those indian guys explaining omp installation on codeblock...

  • @MrMKI-ux2sk
    @MrMKI-ux2sk 4 роки тому

    FYI: This video is still useful in 2020

  • @vmichial
    @vmichial  13 років тому

    in the extra info dropdown menu, are links to the installer and code::blocks download. This way you don't need to worry about the Moodle at all. ^^

  • @spellaxe
    @spellaxe 12 років тому

    This video has now helped me twice when installing code::blocks. thank you

  • @christopher148
    @christopher148 6 років тому

    I had to change in Settings -> Compiler -> Toolchain executables -> Program files, that compiler used in "Linker for dynamics" and "C++ compiler" to be mingw32-gcc.exe since g++ doesn't exist in the new MinGW file.

  • @vmichial
    @vmichial  12 років тому +1

    Glad to hear, you're welcome. good luck with your work.

  • @anglachris5564
    @anglachris5564 2 роки тому

    hello . 2:20 well... its 2021 and it too old but very helpful . thanks from the corona era

  • @AureliusR
    @AureliusR 8 років тому +2

    As of August 2016, it appears that MinGW no longer contains libgomp-1.dll ... not sure what to do about this.

    • @vmichial
      @vmichial  8 років тому +1

      That's unfortunate, I'll look into it and update with an annotation. I appreciate you pointing this out.

    • @AureliusR
      @AureliusR 8 років тому

      OverTheHump If you could, that'd be great. Currently, it is impossible to use Code::Blocks for this. Even adding the .dll back in didn't work -- it was still complaining about a missing header file.

    • @srijack555
      @srijack555 8 років тому +2

      bro just do what he says
      step 1. install code blocks
      step 2. delete MinGW
      step 3. download MinGW installer and install it in a folder.
      step 4. copy the folder into your codeblocks folder and rename it as MinGW (i dont know if this is necessary).
      step 5. Go to settings -> compiler -> other compiler options, then enter
      -fopenmp
      step 6. linker settings tab -> add the dll file called libgomp-1.dll that is present in the bin folder of MinGW that we have copied. and in the other linker options area enter
      -lgomp -pthread
      step 7. tool chain executables tab -> click on auto-detect or choose the bin folder of the MinGW folder. thats all. it worked for me and hopefully it works for you too.

    • @vyomnagaich2609
      @vyomnagaich2609 7 років тому

      As of 17th april, 2017, the file 'libgomp-1.dll' is available in the MinGW version which I have downloaded from the link which has been provided in the description.

  • @ankitraut4413
    @ankitraut4413 4 роки тому +1

    It actually works,great job Thank you

  • @salvatorecapobianco2413
    @salvatorecapobianco2413 5 років тому

    When I try to build: "C:\Program Files (x86)\CodeBlocks\MinGW\bin\libgomp-1.dll: file not recognized: File format not recognized
    "
    Why?!?

  • @purvaingle7301
    @purvaingle7301 3 роки тому

    It's still useful in 2020 thanks

  • @vmichial
    @vmichial  12 років тому

    upon further investigation. it seems this happens regularly with
    cc1plus.exe, it is either out of date(a version before 4.2),
    or you are using the c compiler for a c++ code. either update
    to the latest gcc, or try using a different compiler by changing the
    compiler in tool-chain executables.

  • @ankitchawla8487
    @ankitchawla8487 3 роки тому

    2021 man its 2021 we made it.

  • @foodqw2jd
    @foodqw2jd 4 роки тому

    Still useful in 2020!! Thanks :)

  • @vmichial
    @vmichial  12 років тому

    In the Description I have a link to sourceforge[dot]net where you can download the latest mingw installer. only those in my club could access the college's site

  • @systemgrReloaded
    @systemgrReloaded 12 років тому

    Problem fixed! I repaired the dll file.. Thanks for your answer

  • @ankursethia1
    @ankursethia1 9 років тому

    I linked the libgomp-1.dll and ad the -fopenmp as showed in the video,
    but when I run a code I got this error "stdio.h" file missing..Please help me asap.

    • @vmichial
      @vmichial  9 років тому +1

      Ankur Sethia If you are running this code using a C++ compiler, then you should include "cstdio.h" instead of "stdio.h".
      Note i used .c files which are NOT c++. the STanDard IO header file is called stdio.h in a .c file but is called cstdio.h in a .cpp file used in C++.

  • @mohamedarshad-cm7tj
    @mohamedarshad-cm7tj 2 роки тому

    Hey I followed everything in the video but I’m not able to run the code it says that stdio no files or directory found

    • @vmichial
      @vmichial  2 роки тому

      this means you're running it in a C++(cpp) compiler. stdio is a C library. To run it in a cpp compile it has to be otherwise use a C compiler to run and not a C++ one.

  • @systemgrReloaded
    @systemgrReloaded 12 років тому

    I linked the libgomp-1.dll and ad the -fopenmp as showed in the video,
    but when I run a code that uses omp.h ans #pragmas I take the following error:
    "pthreadGC2.dll is missing from your computer". Do you know what is the problem?

  • @vmichial
    @vmichial  12 років тому

    If you are running the program using code::blocks' compile+run this problem should be relatively impossible... unless your system files are corrupted or missing
    If you are managing the files yourself however and running it in the command line from some working directory, then you could place a copy of the particular missing DLL in your working directory. Find this DLL and place it in the same directory location as the compiled executable, this WILL solve it. but, you must find out why its gone.

  • @vmichial
    @vmichial  12 років тому

    I want to stress that this is not an issue with Code::Blocks or OpenMP.
    If you follow my video move for move it should work, assuming you have no
    errors on your system.
    This DLL missing is a system issue, and this problem with your system should be resolved. That fact that this error showed up now and not some other time is most likely due to the nature of what you are doing not being typical of work on your system.
    my previous comments can lead you in the right direction.

  • @wuliou
    @wuliou 10 років тому

    This video really helps me a lot. Thanks.

  • @vmichial
    @vmichial  13 років тому

    @jonashegele Thanks alot, glad I could help. Have fun

  • @ankursethia1
    @ankursethia1 9 років тому

    I also checked my new minGW folder and the fact is that this file is not in my "include" folder.

  • @vmichial
    @vmichial  12 років тому +1

    I would suggest not using that compiler.
    I cannot verify that cc1plus.exe actually supports OpenMP.
    seeing as openmp[dot]org doesn't list it in the compilers that support it,
    and the compiler flag wasn't recognized, Its a safe bet to say it doesn't.
    The compiler you are using doesn't recognize it because it doesn't support it.
    I would suggest using:
    mingw32-gcc.exe for .c programs
    mingw32-g++.exe for .cpp programs
    they exist in the bin folder of the MinGW compiler sweet.
    support is guaranteed

  • @belzec96
    @belzec96 12 років тому

    thanks was very helpful, just that I use -fopenmp to run it

  • @Beautyinanydetail
    @Beautyinanydetail 5 років тому

    Thank you so much!
    Does anybody knows how to run MPI code instead OpenMP. I can not find the name of a library that I should use.

    • @SHASHWATNEGIBCE
      @SHASHWATNEGIBCE 5 років тому

      www.mpich.org/static/docs/latest/
      Library
      #include
      Ps: Probably to late Sorry

  • @JolienJM
    @JolienJM 12 років тому

    Great video, it has really helped me!

  • @szitsme
    @szitsme 4 роки тому

    It helped a lot! Tksss!

  • @LuisEVega
    @LuisEVega 10 років тому +2

    Thanks a lot! ;)

    • @Hector3436
      @Hector3436 10 років тому +1

      mira quien encontre!

  • @vmichial
    @vmichial  12 років тому

    pcsupport[dot]about[dot]com/od/findbyerrormessage/a/pthreadgc2-dll-not-found-missing-error[dot]htm
    Has suggestions for possibly recovering your missing DLL file.
    If all other options fail, download the DLL, and place it in the directory
    your executable is created. when it runs, the DLL will link and run.

  • @giffarialfarizy7310
    @giffarialfarizy7310 8 років тому

    awesome :) thanks, Green

  • @ishaanarora9805
    @ishaanarora9805 9 років тому

    awesome ,it works for me !!can you do similar thing on codeblocks on MinGW for MPI(say MPICH2 )

  • @ianhessey1190
    @ianhessey1190 4 роки тому

    2020 and still trying to learn shit :) one day they make a program that pulls all the shit for every thing us noobs need. :)

  • @quangvietle
    @quangvietle 13 років тому

    Nice video, Keep it em coming!

  • @mishana85
    @mishana85 12 років тому

    Thank you!

  • @damonargyres3849
    @damonargyres3849 9 років тому

    2/26/2015: On Code::Blocks, required all of what the video is showing, plus pthreadGC2.dll. I downloaded the latter from www.dll-files.com. Cool videos on OpenMP from intel: UA-cam: Introduction to OpenMP by tim mattson. Cheers! :)

  •  13 років тому

    Great video! Thanks a lot!

  • @kaustubhpatil3921
    @kaustubhpatil3921 6 років тому

    Thank You So Much

  • @Blebona
    @Blebona 10 років тому

    and how do you install openmp?

  • @theMou
    @theMou 9 років тому

    thank you! Works..

  • @Blebona
    @Blebona 10 років тому

    got it. thanks

  • @killaraiz1
    @killaraiz1 13 років тому

    Michial Da Boss doin Bigg thangs. lol nice voice!!!

  • @perukasigualamierdaa3061
    @perukasigualamierdaa3061 8 років тому

    THANKS A LOT DUE. REALLY.

  • @haruncetin4606
    @haruncetin4606 8 років тому

    ||=== Build: Debug in de (compiler: GNU GCC Compiler) ===|
    copenmp\de\main.cpp|1|fatal error: omp.h: No such file or directory|
    ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

  • @schnozberry2
    @schnozberry2 6 років тому

    Legend!

  • @vmichial
    @vmichial  13 років тому

    happyyy studying...I hate my voice in this video ahahaha

  • @DocL33t
    @DocL33t 12 років тому

    thx man

  • @ifrehroses717
    @ifrehroses717 5 років тому

    THX

  • @pipotherium
    @pipotherium 12 років тому

    nice

  • @pipotherium
    @pipotherium 12 років тому

    thanks :)

  • @luislutchoo3396
    @luislutchoo3396 3 роки тому

    Great 2021 [-:))

  • @vanhungle9157
    @vanhungle9157 8 років тому

    i have to turn off anti virus to run the code :p

  • @farhanaaz3
    @farhanaaz3 Рік тому

    Thank you! This worked for me

  • @jonashegele
    @jonashegele 13 років тому

    Great video! It helped me a lot.

  • @vyomnagaich2609
    @vyomnagaich2609 7 років тому

    Thanks very much! :)

  • @hanna-yc
    @hanna-yc 8 років тому

    thank you!!