Loading please wait...

vtucircle » CodeBlocks Setup for Parallel Computing Lab on Windows

CodeBlocks Setup for Parallel Computing Lab on Windows

  1. Go to the official Code::Blocks download page:
    👉 https://www.codeblocks.org/downloads/
  2. Download this version:
    codeblocks-25.03mingw-setup.exe
    (This includes MinGW, which is the compiler)
  3. Run the installer and complete installation with default options.

Step 2: Install Microsoft MPI (MS-MPI) SDK & mpiSetup

  1. Go to the official Microsoft MPI download page:
    👉 https://www.microsoft.com/en-us/download/details.aspx?id=57467
  2. Click on downlaod: Choose both file and then click on downlaod button.
  3. Run the installer and complete installation with default options (one by one):
    • First install msmpisdk.msi after then install msmpisetup.exe.
  1. In Code::Blocks, go to: (Settings → Compiler)
setup
  • Now do the following:

Add:

-fopenmp
setup
  1. First add link Libraries by click on add button as per below screenshot.
setup
  • After then click on folder icon to select library as per below screenshot.
setup
  • First go to C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64, select all files, click Open, then click OK to add them.
  • Repeat the same: go to C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86, select all files, click Open, then click OK to add them.
  1. Then, under Other linker options, add -fopenmp.
setup

➤ Finally under the “Search directories” → “Compiler”:

  • Click on add button to select directory.
setup
  • After then click on folder icon as per below screenshot.
setup
  • Next, go to C:\Program Files (x86)\Microsoft SDKs\MPI\Include, click Select Folder, then click OK to add it.
  • Finally click on ok button to save all the compiler configuration.
setup
  • restart the Code::Blocks.
  1. Open Code::Blocks
  2. Go to File → New → Project
  3. Select Console Application, then click Go → Next
  4. Choose C languageNext
  5. Name your project (e.g., MergeSort) and choose a folder where you want to save your program (recomended Desktop)Next
  6. Select GNU GCC CompilerFinish.
  7. Then, click on Sources, open main.c, delete the default code, and write your own program.
guest
0 Comments
Inline Feedbacks
View all comments

Hey! We'd love to know how do you feel about vtucircle website? 😊 Share your thoughts with us!

0
Would love your thoughts, please comment.x
()
x