Tuesday, 25 August 2015

Enabling OMP on PC

In cs426, we use OpenMP both on PC and in SciCloud. If you want to try OpenMP on you laptop or PC, you may have to install some software as following.
  1. get CodeBlock IDE and MinGW
  2. include C:\MinGW\bin to system path
  3. install mingw32-pthreads-w32 using C:\MinGW\bin\mingw-get.exe
  4. In codeBlock, Settings>>compiler>>linker setting>>link library=C:\MinGW\bin\libgomp-1.dll
  5. In codeBlock, Settings>>compiler>>compiler settings>>other options= -fopenmp
You may need to restart your computer to apply the new configuration.

Wednesday, 19 August 2015

creating a new network in SciCloud

To create a new network:

  1. networks>create network>subnet=
  2. create routers>select external network to attach the routers>create an interface to the new network
  3. Now a new instance can be attached to the new network. However, it could not resolve the URL, a DNS servers in /etc/resolv.conf need to be change. Add "nameserver" to the /etc/resolv.conf