23/10/14

How to use OpenMp in Codeblocks

Step 1: Download and install Codeblocks and choose the default GNU  GCC compiler.

Step 2:  Create a new test project. To ensure the openmp functionality, open "Compiler and debugger settings", put "-fopenmp" in "other options", and "-lgomp -pthread" in "Other linker options".

Step 3: Add "C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\bin" to  "Compiler and debugger settings" -> "Toolchain Executables" -> Additional Paths ->Add.

And thats it...

Congrats and Enjoy .. \m/

System Conf: W7/64bit


Bài đăng phổ biến