Skip to content

Assignment of 1DL550 Low-level Parallel Programming at Uppsala University

Notifications You must be signed in to change notification settings

enja7016/1DL550_Assignment

 
 

Repository files navigation

1DL550_Assignment

Assignment of 1DL550 Low-level Parallel Programming at Uppsala University

Prerequisite: Load dependencies on UPPMAX

If you are using the UPPMAX cluster that is provided by the course, run the following command to load all dependencies.

$ source UPPMAX_modules.sh

If you are running on your own machine, please jump to the next section on installing Qt5, and also prepare CUDA or OpenCL on your own.

Prerequisite: Qt5

If using UPPMAX, skip this section.

Qt5 is required to build and run the assignment. Tested with Qt5 on Ubuntu 20.04. Installed Qt5 with the following command:

# apt install qtbase5-dev qtbase5-dev-tools

If you cannot install Qt5, but you do have Qt4 then you will need to modify the include and library arguments in demo/Makefile. Change the qt5 strings under QTINCLUDES and LIBS to your Qt version.

Building

$ make

This should build both binaries in libpedsim then in demo

If you are not using UPPMAX

If during the build the compiler complains of unknown path to the Qt headers (include path), check the path in QTINCLUDES and make sure they exist on your system. Your system may put the include files at a different location. The makefile currently tries to locate the Qt header files using the following command:

$ qmake -query QT_INSTALL_HEADERS

If this fails, try locate the header files using the following command:

$ find / -name QTHEADER.h` (where the QTHEADER.h the compiler is looking for)

Using the results fix the path in QT_HEADERS variable in the demo/Makefile

Running

If the build is successful, run the simulator using the following command

$ demo/demo scenario.xml

If you get an error about not finding any display, then you need to connect to the UPPMAX node with an X session.

On Mac/Linux, on your terminal, add the -Y argument in your ssh command. On Windows, start your X-server application (e.g. Xming), and configure enabling X11 in your PuTTY configuration.

About

Assignment of 1DL550 Low-level Parallel Programming at Uppsala University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.5%
  • Cuda 18.9%
  • Makefile 2.1%
  • Other 0.5%