Commit ca3be63f authored by Matthias Rüster's avatar Matthias Rüster
Browse files

Tests: Add documentation about how to run the tests

parent bc6e999b
# How to run the test scripts
## For CPU
Compile the `easywave` binary in the `code` directory, then run
`./test-cpu.sh`.
## For GPU
To test GPU results you can use a docker container to compile and then test the
easyWave binary. You will need a GPU-enabled docker container, which is in this
example achieved with the nvidia runtime environment of the docker service:
```shell
docker run --rm --runtime nvidia -e NVIDIA_VISIBLE_DEVICES=0 -it nvidia/cuda:11.0.3-devel-ubuntu20.04 /bin/bash
apt-get update && apt-get install -y autoconf g++ binutils make gdal-bin python3.8 git
git clone https://git.gfz-potsdam.de/id2/geoperil/easyWave.git
cd easyWave/code
./bootstrap.sh && ./configure && make
cd tests
./test-gpu.sh
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment