Welcome to our first ever workshop at the School of Enginreeing!
This project demonstrates the generation of a square wave using Fourier series approximation. It consists of a C++ program to calculate the wave and a Python script to plot the results.
Here is help and guide on how to get started with Intel's Dev Cloud
- CMake version 3.10 or higher
- An installation of the Intel C++ Compiler (icpx)
- Python 3.x with the following packages:
numpy
matplotlib
-
log into your Intel devCloud and set up your project
Start a new terminal
Clone the project
git clone https://git.ecdf.ed.ac.uk/s2160679/intelworkshop.git
-
Build your own single-threading implementation
First, clone the repository to your Cloud environment and run the following command:
cd c++Implementation mkdir build cd build cmake .. make run
-
Complete the SYCL implementation
Go to the
syclImplementation
directory and complete the task and compare your result with the pre-compiledSyclexecutable
in theanswear
directory -
Offload the SYCL to GPU and CPU
Once you finished you can run your implementation on both GPU and CPU using the following command
export ONEAPI_DEVICE_SELECTOR=*:cpu or export ONEAPI_DEVICE_SELECTOR=*:gpu