Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

sal-versij/TravelingSalesmanProblem-GPU

Repository files navigation

Traveling Salesman Problem on GPU

Prerequisites

  • C compilers
  • OpenCL SDK for at least one of your platforms

Build

  1. Check the CMakeLists.txt to suits your environment variables and compiler
  2. Setup the toolchain for your compiler
  3. Run cmake to generate the build files
  4. Run cmake --build .\build --target main to build the project

An example of building with ninja on Windows

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S .\ -B .\build
cmake --build .\build --target main -j 3

Optionally you can execute any version of the code by cahnging the -target from main to the filename of the version to execute without extension

An example of building the version 1.1.1

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S .\ -B .\build
cmake --build .\build --target v1.1.1 -j 3