Тёмный

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

VMichial
Подписаться 121
Просмотров 63 тыс.
50% 1

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 がんばって下さい!!

Наука

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

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 80   
@mavenuparker
@mavenuparker 4 года назад
It's 2020 and we are still trying to figure out the same things.
@rad6014
@rad6014 4 года назад
"If you waching this video in 2020" got me emotional
@mrmoney3378
@mrmoney3378 4 года назад
OMG. Same here!!
@MuhannadGhazal
@MuhannadGhazal 4 года назад
lol same.
@mzm5621
@mzm5621 4 года назад
I got goosebumps when he said 2020 but the video is 10 YEARS AGO!
@aniketmane1742
@aniketmane1742 3 года назад
Its 2020 and our college professor still asked us to refer this video.........thanks man.
@126grc
@126grc 6 лет назад
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 лет назад
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.
@felipefernandes1019
@felipefernandes1019 2 года назад
2022 and it still works fine for me, thanks for the video bro!
@vmichial
@vmichial 12 лет назад
I'm glad to see this video is helping people after this time, you are all welcome.
@parsaasemi4415
@parsaasemi4415 Год назад
Thank you very very much! this is still working in 2023!
@figimigihey9139
@figimigihey9139 11 месяцев назад
MAAAAN Yeah, thanks a lot. you are number #1, you are millions of time better than those indian guys explaining omp installation on codeblock...
@erenackerman9681
@erenackerman9681 4 года назад
It's 2020 and it's still useful. Thanks mate👍
@spellaxe
@spellaxe 12 лет назад
This video has now helped me twice when installing code::blocks. thank you
@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.
@cguser
@cguser 5 лет назад
actually it's a useful video in 2019 :)
@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".
@vmichial
@vmichial 12 лет назад
Glad to hear, you're welcome. good luck with your work.
@ankitraut4413
@ankitraut4413 5 лет назад
It actually works,great job Thank you
@purvaingle7301
@purvaingle7301 3 года назад
It's still useful in 2020 thanks
@MrMKI-ux2sk
@MrMKI-ux2sk 4 года назад
FYI: This video is still useful in 2020
@foodqw2jd
@foodqw2jd 4 года назад
Still useful in 2020!! Thanks :)
@anglachris5564
@anglachris5564 2 года назад
hello . 2:20 well... its 2021 and it too old but very helpful . thanks from the corona era
@wuliou
@wuliou 11 лет назад
This video really helps me a lot. Thanks.
@JolienJM
@JolienJM 12 лет назад
Great video, it has really helped me!
@systemgrReloaded
@systemgrReloaded 12 лет назад
Problem fixed! I repaired the dll file.. Thanks for your answer
@szitsme
@szitsme 4 года назад
It helped a lot! Tksss!
@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. ^^
@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.
@quangvietle
@quangvietle 13 лет назад
Nice video, Keep it em coming!
@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.
@vmichial
@vmichial 13 лет назад
@jonashegele Thanks alot, glad I could help. Have fun
13 лет назад
Great video! Thanks a lot!
@giffarialfarizy7310
@giffarialfarizy7310 8 лет назад
awesome :) thanks, Green
@ankitchawla8487
@ankitchawla8487 3 года назад
2021 man its 2021 we made it.
@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.
@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.
@LuisEVega
@LuisEVega 10 лет назад
Thanks a lot! ;)
@Hector3436
@Hector3436 10 лет назад
mira quien encontre!
@theMou
@theMou 9 лет назад
thank you! Works..
@kaustubhpatil3921
@kaustubhpatil3921 6 лет назад
Thank You So Much
@mishana85
@mishana85 12 лет назад
Thank you!
@perukasigualamierdaa3061
@perukasigualamierdaa3061 8 лет назад
THANKS A LOT DUE. REALLY.
@AureliusR
@AureliusR 8 лет назад
As of August 2016, it appears that MinGW no longer contains libgomp-1.dll ... not sure what to do about this.
@vmichial
@vmichial 8 лет назад
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 лет назад
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.
@Blebona
@Blebona 10 лет назад
got it. thanks
@vmichial
@vmichial 12 лет назад
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!
@belzec96
@belzec96 12 лет назад
thanks was very helpful, just that I use -fopenmp to run it
@killaraiz1
@killaraiz1 13 лет назад
Michial Da Boss doin Bigg thangs. lol nice voice!!!
@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.
@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?!?
@ankursethia1
@ankursethia1 9 лет назад
I also checked my new minGW folder and the fact is that this file is not in my "include" folder.
@farhanaaz3
@farhanaaz3 Год назад
Thank you! This worked for me
@ishaanarora9805
@ishaanarora9805 9 лет назад
awesome ,it works for me !!can you do similar thing on codeblocks on MinGW for MPI(say MPICH2 )
@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
@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: RU-vid: Introduction to OpenMP by tim mattson. Cheers! :)
@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?
@DocL33t
@DocL33t 12 лет назад
thx man
@pipotherium
@pipotherium 12 лет назад
thanks :)
@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.
@Blebona
@Blebona 10 лет назад
and how do you install openmp?
@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. :)
@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 лет назад
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++.
@ifrehroses717
@ifrehroses717 5 лет назад
THX
@pipotherium
@pipotherium 12 лет назад
nice
@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
@luislutchoo3396
@luislutchoo3396 3 года назад
Great 2021 [-:))
@vmichial
@vmichial 14 лет назад
happyyy studying...I hate my voice in this video ahahaha
@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)) ===|
@vanhungle9157
@vanhungle9157 8 лет назад
i have to turn off anti virus to run the code :p
@jonashegele
@jonashegele 13 лет назад
Great video! It helped me a lot.
@vyomnagaich2609
@vyomnagaich2609 7 лет назад
Thanks very much! :)
@hanna-yc
@hanna-yc 8 лет назад
thank you!!
Далее
Writing Code That Runs FAST on a GPU
15:32
Просмотров 560 тыс.
How to Configure openmp with Codeblocks
5:20
Просмотров 26 тыс.
MPI Basics
38:13
Просмотров 73 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 312 тыс.
Malware Development: Processes, Threads, and Handles
31:29
Parallel Programming: OpenMP
5:43
Просмотров 55 тыс.
Дым-машина из Китая
0:57
Просмотров 55 тыс.