Тёмный

Compile MPI and OpenMP programs with VS Code in Windows 

Innovator
Подписаться 560
Просмотров 35 тыс.
50% 1

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

 

24 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 76   
@bogdanmelciu1724
@bogdanmelciu1724 Год назад
Extremely helpful, that you show the right version of the MinGW. Thanks a lot!
@lalitasharma6687
@lalitasharma6687 5 месяцев назад
I have quantum eapresso it shows error code mpi_abort was invoked on rank 0 in communicator mpi_comm_world with errorcode 1 What this means I'm new in programming stuff How to fix it
@harshith_takkala
@harshith_takkala 5 месяцев назад
I am sorry, not sure about that tool/software/OS, this video is for windows systems only, as i am downloading MSI packages from microsoft.
@danhelimunizsanchez897
@danhelimunizsanchez897 Год назад
HELPFUL VIDEO! YOU SAVE MY LIFE!!!! GREATINGS FROM MEXICO!!!!!
@Sir_Breezy_
@Sir_Breezy_ 7 месяцев назад
I encountered this error when I put ${workspaceFolder}/** ${MSMPI_INC} on the include path in C/C++ configuration in my project: Cannot find: {project_path}/${MSMPI_INC} Can you help me please? I've followed every step before.
@harshith_takkala
@harshith_takkala 6 месяцев назад
I am not sure why {project_path} variable to the include path. If that still doesnt work, try hard coding the include path (put the value of MSMPI_INC directly in the configurations UI. Hope that helps, and sry for delay
@SaifuddinNajmuddin-vi3kd
@SaifuddinNajmuddin-vi3kd 5 месяцев назад
Helpful, Thank you so much. It worked.
@VenuVGR007
@VenuVGR007 Год назад
Hi, thanks for your help. Wanted to know how to install a compiler like mpic++. I have g++ from mingw64 but understandably it gives an error mpi.h not defined when compiling.
@harshith_takkala
@harshith_takkala Год назад
We install MPI from the Microsoft website (.exe and .msi) as shown in video.
@kanchanpathak9752
@kanchanpathak9752 Год назад
one mistake I did was to install/extract pckg in one location(mostly default) and then moving the folders here and there. This might cause an error. Plus delete your older version of Mingw (usually it comes with codeblocks etc). So delete that first before installing this version.
@daiannysantanadeoliveira2155
Thank you very much! I was struggling to make this work but your video helped a lot!
@harshith_takkala
@harshith_takkala Год назад
Glad it helped
@shreyapatil156
@shreyapatil156 9 месяцев назад
Cannot find: d:/MPI/${MSMPI_INC} This is the error I am getting, it'll be really helpful if you resolved it
@harshith_takkala
@harshith_takkala 9 месяцев назад
(MSMPI_INC) variable must be an absolute path to MPI include directory and you have to use the variable directly in VS Code settings rather than like this. Remove D:/MPI/ from the path
@Artemadminful
@Artemadminful Год назад
Thank you very much! Everything was clear and interesting :-)
@rajatkokane5750
@rajatkokane5750 Год назад
I'm getting an error called environment variable msmpi not defined in cmd when I typed set msmpi. I did everything that you said. Even the path is correct. How can I make it work. I'm on Windows 11 Home.
@harshith_takkala
@harshith_takkala Год назад
Sorry, am not sure.
@harshith_takkala
@harshith_takkala Год назад
May be check in both user and system env variables
@rajatkokane5750
@rajatkokane5750 Год назад
What eco mode does is it disables the dedicated gpu. I'm guessing that's what caused the issue. I switched back to GPU on mode and it started working. And yes, it was showing up in both user and system env variables.
@harshith_takkala
@harshith_takkala Год назад
@@rajatkokane5750 oh, but in my case there's no requirement of GPU for this setup. Anyways, good to hear.
@AimedX3
@AimedX3 Год назад
I get the error mpi.h: no such file or directory Do you have any solution? and do i have to install OpenMP? i only want to use MPI
@harshith_takkala
@harshith_takkala Год назад
May he restart the whole process again. Or you might have missed any step in between. You can use only MPI. No need of openmp. You can go with that MSI tools shown in the video along with configurations
@ucvinh198
@ucvinh198 Год назад
i did like video until 9:05, when i open my vs code i don't have mpi.c and openmp.c in order to continue. how can i fix it
@harshith_takkala
@harshith_takkala Год назад
Those both are files for explaination of video. You can find the github repo link in description.
@aqsafatima6782
@aqsafatima6782 Год назад
I am still getting an error fatal error: mpi.h: No such file or directory #include please help me how to resolve it
@harshith_takkala
@harshith_takkala Год назад
1. Restart VS code 2. Restart the whole procedure 3. Update the extensions 4. Check if any env are clashing 5. Put the current using compiler in the highest priority by moving to the top of the list 6. May be a "//" work instead of "/" I am not sure but try these
@TrollFace877
@TrollFace877 Год назад
Some boat as you, I am missing
@nelsuh
@nelsuh Год назад
spawn cmd.exe ENOENTBuild finished with error(s). i have this problem how to fix it
@harshith_takkala
@harshith_takkala Год назад
I am not sure, Sorry
@hasirhamza4070
@hasirhamza4070 Год назад
i do the same way as you said but i got an error while include mpi.h file . even the suggestion are shown inside the main function . but while click on Run Build Task it show me this error "cpp:1:10: fatal error: 'mpi.h' file not found"
@harshith_takkala
@harshith_takkala Год назад
Have you modified the compilation command, which is as "GCC " with all other flags and arguments in the json file ?
@but_t3rsforever471
@but_t3rsforever471 Год назад
I have the same problem, did you fix that?
@harshith_takkala
@harshith_takkala Год назад
Or may be env is not set properly
@harshith_takkala
@harshith_takkala Год назад
If still the same case, please restart the whole procedure leaving the installation, if poasible
@hasirhamza4070
@hasirhamza4070 Год назад
@@harshith_takkala i guesssed so . thanks this video really helpful.
@GoBliNGamingxD
@GoBliNGamingxD 9 месяцев назад
It did not setup the msmpi environment variables for me automatically. What should i be doing?
@harshith_takkala
@harshith_takkala 9 месяцев назад
They won't set automatically. You have to set them in system env variables and then have to use them in VS code C++ settings GUI.
@andykim4599
@andykim4599 2 года назад
Your video is very helpfull. But, I got error messege “cannot find -lmsmpi”. How can I fix this?
@harshith_takkala
@harshith_takkala 2 года назад
I think you have made capital "i" instead of small "L". Please check it If not, then may include path in VS code is not properly set
@salwasaad752
@salwasaad752 Год назад
PLEASE : How to run openMP and MPI in C++ code in cmd promit?
@harshith_takkala
@harshith_takkala Год назад
You can actually make use of the reference link I referred to run in cmd with flags for both MPI and openMP
@saisarwesh104
@saisarwesh104 2 года назад
Very much helpful, thanks bro
@harshith_takkala
@harshith_takkala 2 года назад
Thanks aniya Nijanganaa
@saisarwesh104
@saisarwesh104 2 года назад
@@harshith_takkala yes
@vijaykumarb9226
@vijaykumarb9226 Год назад
I am getting an error of no file like MPI.h
@harshith_takkala
@harshith_takkala Год назад
There might be some glitches in the process you followed, may be please restart the whole process. Ensure that MPI path is set in both env variables.
@bleakmess
@bleakmess 11 месяцев назад
Thanks for the video man.
@ShilamRahulPrasad
@ShilamRahulPrasad 2 года назад
I find it really helpful. Thank you, brother. Also, can you please upload the source code used in this video?
@harshith_takkala
@harshith_takkala 2 года назад
Yes yes sure. I will definitely upload within a week from today.
@harshith_takkala
@harshith_takkala 2 года назад
Pushed. You can visit the link in description.
@bindu6826
@bindu6826 Год назад
gcc.exe: error: workshare.c: No such file or directory gcc.exe: fatal error: no input files I AM GETTING THIS ERROR IN TERMINAL
@harshith_takkala
@harshith_takkala Год назад
May be the working directory is not the same as activated directory in terminal.
@bindu6826
@bindu6826 Год назад
@@harshith_takkala yup resolved. Thanks!
@govardhandevil322
@govardhandevil322 Год назад
How to run openMP code in cmd promit
@harshith_takkala
@harshith_takkala Год назад
gcc filename.c -fopenmp
@yudhi.paramartha
@yudhi.paramartha 2 года назад
Nice tutorial. Can I have the sample code used in this video?
@harshith_takkala
@harshith_takkala 2 года назад
Yes definitely! Sorry for being late. I will update description within a week.
@harshith_takkala
@harshith_takkala 2 года назад
Pushed. You can visit the link in description.
@govardhandevil322
@govardhandevil322 Год назад
Iwant openMP nodes
@harshith_takkala
@harshith_takkala Год назад
@@govardhandevil322 as of my knowledge, we have nodes in MPI. These are controlled by MPI commands like MPI_scatter and gather, etc..
@alexmercer7446
@alexmercer7446 6 месяцев назад
Thank you man
@VitorHugo-vq1uf
@VitorHugo-vq1uf Год назад
Thanks man
@govardhandevil322
@govardhandevil322 Год назад
Single core run multiple threads and single core single thread send any Codeing
@harshith_takkala
@harshith_takkala Год назад
Open MP for multi thread programming. A normal program in C is a program in single thread. You can also use pragma omp headers to created single threaded programs
@harshith_takkala
@harshith_takkala Год назад
Most of the programs attached in github are both single and multi threaded. I just made them for showing the time taken by both of them
@trololollolololololl
@trololollolololololl 2 месяца назад
great
@andresestevez2701
@andresestevez2701 Год назад
maaaaaaaaaaaaaaaaaaaestro.... por q no hay mas españoles que indiquen estas cositas pues...........
@harshith_takkala
@harshith_takkala 10 месяцев назад
Hii, you find the video useful?
@shreyamatade409
@shreyamatade409 Год назад
It still says mpi.h not found
@harshith_takkala
@harshith_takkala Год назад
Just restart the process if possible, there may be some glitches. Check for path (user and system)
@RoseNoir-i7r
@RoseNoir-i7r 3 месяца назад
did you find the solution @shreyamatade409? please tell
@shreyamatade409
@shreyamatade409 3 месяца назад
@@RoseNoir-i7r no
@RoseNoir-i7r
@RoseNoir-i7r 3 месяца назад
@@shreyamatade409 tnx mate :(
Далее
MPI Basics
38:13
Просмотров 75 тыс.
Parallel C++: MPI
16:42
Просмотров 11 тыс.
How to Configure openmp with Codeblocks
5:20
Просмотров 27 тыс.
Execute C,C++ Programs with MinGW-w64 from GCC.
7:33
Просмотров 4,9 тыс.
MPI Advanced
1:02:17
Просмотров 22 тыс.
The Complete Guide to Python Virtual Environments!
15:52