Tool Installation

    • C++
      • Linux
        • g++ should already be on the command line
      • Mac
        • Install homebrew using /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
        • Install gcc using /usr/local/bin/brew install gcc
        • use g++-8 as the compile command
      •  Windows
        • Download TDM-GCC and unzip it
        • open a command prompt and run mingwvars.bat from the folder
      •  Test
        • Download openmp_confirm.cpp
        • Compile with g++ -o openmp_confirm openmp_confirm.cpp -fopenmp
        • Run openmp_confirm
        • You should see:
          • hi from thread 0
          • hi from thread 1
      • Using Microsoft Visual Studio (2015 or later recommended)
        • Open a new empty project (console application). Empty project should not have precompiled header
        • Now, right click on the new opened solution(++ sign) in Solution Explorer
        • A property window will appear. Go to Configuration Properties -> C/C++ -> Language.
        • Now click Open MP Support -> select Yes (/openmp) from a dropdown box. You are all set at this point.
        • Test: Add openmp_confirm.cpp file as an existing item in to the Source Files directory (in Solution Explorer window).
        • Build and run the openmp_confirm.cpp file (Shortcut: Ctrl + F5)
        • You should see:
          • hi from thread 0
          • hi from thread 1
        • For the older VS (2013 or earlier) versions you might need to follow below instructions along with the instructions above.
        • Go to Build menu (top level) -> Configuration Manager.
        • In the Project contexts area box: set Configuration as Debug and Platform as Win32 from the dropdown boxes. You are all set now!
  • Java
    • Linux/Mac
      • Install the Java JDK
      • Download pyjama and unzip it
      • open a terminal and run source setpath.sh from the folder
      • Test
        • Download PyjamaConfirm.java
        • Compile with java -jar $pyjama PyjamaConfirm.java
        • Run with java -cp $pyjama:. PyjamaConfirm
        • You should see:
          • hi from thread 0
          • hi from thread 1
    •  Windows
      • Download Java8andPyjama and unzip it
      • open a command prompt and run setpath.bat from the folder
      • Test
        • Download PyjamaConfirm.java
        • Compile with java -jar %pyjama% PyjamaConfirm.java
        • Run with java -cp %pyjama%;. PyjamaConfirm
        • You should see:
          • hi from thread 0
          • hi from thread 1