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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 80

  • @mavenuparker
    @mavenuparker 5 ปีที่แล้ว +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 4 ปีที่แล้ว +1

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

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

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

  • @vmichial
    @vmichial  13 ปีที่แล้ว

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

  • @felipefernandes1019
    @felipefernandes1019 2 ปีที่แล้ว

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

  • @spellaxe
    @spellaxe 13 ปีที่แล้ว

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

  • @erenackerman9681
    @erenackerman9681 4 ปีที่แล้ว +1

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

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

  • @figimigihey9139
    @figimigihey9139 ปีที่แล้ว

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

  • @parsaasemi4415
    @parsaasemi4415 ปีที่แล้ว

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

  • @vmichial
    @vmichial  14 ปีที่แล้ว

    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. ^^

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

  • @gabrielviannasr
    @gabrielviannasr 7 ปีที่แล้ว

    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".

  • @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?!?

  • @mohamedarshad-cm7tj
    @mohamedarshad-cm7tj 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      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?

  • @cguser
    @cguser 6 ปีที่แล้ว +13

    actually it's a useful video in 2019 :)

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

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

  • @vmichial
    @vmichial  12 ปีที่แล้ว +1

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

  • @ankitraut4413
    @ankitraut4413 5 ปีที่แล้ว +1

    It actually works,great job Thank you

  • @christopher148
    @christopher148 7 ปีที่แล้ว

    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.

  • @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 ปีที่แล้ว

    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.

  • @purvaingle7301
    @purvaingle7301 4 ปีที่แล้ว

    It's still useful in 2020 thanks

  • @foodqw2jd
    @foodqw2jd 4 ปีที่แล้ว

    Still useful in 2020!! Thanks :)

  • @anglachris5564
    @anglachris5564 3 ปีที่แล้ว

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

  • @Blebona
    @Blebona 10 ปีที่แล้ว

    and how do you install openmp?

  • @systemgrReloaded
    @systemgrReloaded 12 ปีที่แล้ว

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

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

  • @MrMKI-ux2sk
    @MrMKI-ux2sk 4 ปีที่แล้ว

    FYI: This video is still useful in 2020

  • @wuliou
    @wuliou 11 ปีที่แล้ว

    This video really helps me a lot. Thanks.

  • @quangvietle
    @quangvietle 14 ปีที่แล้ว

    Nice video, Keep it em coming!

  • @jonashegele
    @jonashegele 13 ปีที่แล้ว

    Great video! It helped me a lot.

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

  • @szitsme
    @szitsme 4 ปีที่แล้ว

    It helped a lot! Tksss!

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

  • @ishaanarora9805
    @ishaanarora9805 9 ปีที่แล้ว

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

  • @giffarialfarizy7310
    @giffarialfarizy7310 9 ปีที่แล้ว

    awesome :) thanks, Green

  •  13 ปีที่แล้ว

    Great video! Thanks a lot!

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

  • @vmichial
    @vmichial  13 ปีที่แล้ว

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

  • @haruncetin34
    @haruncetin34 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)) ===|

  • @ankitchawla8487
    @ankitchawla8487 4 ปีที่แล้ว

    2021 man its 2021 we made it.

  • @theMou
    @theMou 9 ปีที่แล้ว

    thank you! Works..

  • @LuisEVega
    @LuisEVega 10 ปีที่แล้ว +2

    Thanks a lot! ;)

    • @Hector3436
      @Hector3436 10 ปีที่แล้ว +1

      mira quien encontre!

  • @belzec96
    @belzec96 13 ปีที่แล้ว

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

  • @killaraiz1
    @killaraiz1 13 ปีที่แล้ว

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

  • @mishana85
    @mishana85 13 ปีที่แล้ว

    Thank you!

  • @Blebona
    @Blebona 10 ปีที่แล้ว

    got it. thanks

  • @perukasigualamierdaa3061
    @perukasigualamierdaa3061 9 ปีที่แล้ว

    THANKS A LOT DUE. REALLY.

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

  • @schnozberry2
    @schnozberry2 6 ปีที่แล้ว

    Legend!

  • @vanhungle9157
    @vanhungle9157 9 ปีที่แล้ว

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

  • @DocL33t
    @DocL33t 13 ปีที่แล้ว

    thx man

  • @pipotherium
    @pipotherium 13 ปีที่แล้ว

    thanks :)

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

  • @damonargyres3849
    @damonargyres3849 10 ปีที่แล้ว

    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: TH-cam: Introduction to OpenMP by tim mattson. Cheers! :)

  • @pipotherium
    @pipotherium 13 ปีที่แล้ว

    nice

  • @ifrehroses717
    @ifrehroses717 6 ปีที่แล้ว

    THX

  • @vmichial
    @vmichial  14 ปีที่แล้ว

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

  • @luislutchoo3396
    @luislutchoo3396 3 ปีที่แล้ว

    Great 2021 [-:))

  • @farhanaaz3
    @farhanaaz3 2 ปีที่แล้ว

    Thank you! This worked for me

  • @JolienJM
    @JolienJM 13 ปีที่แล้ว

    Great video, it has really helped me!

  • @kaustubhpatil3921
    @kaustubhpatil3921 6 ปีที่แล้ว

    Thank You So Much

  • @vyomnagaich2609
    @vyomnagaich2609 7 ปีที่แล้ว

    Thanks very much! :)

  • @hanna-yc
    @hanna-yc 9 ปีที่แล้ว

    thank you!!