This repository was built to illustrate how Coriander and Oclgrind can be used together. Unfortunately, the devil is in the details, -- the set-up is painful -- since it requires both libraries to be dynamically linked against the same version of LLVM to operate to avoid the following error:
error "'phi-node-folding-threshold' registered more than once"
This repository uses Docker to outline the build steps I used to get these two awesome tools to play nice together.
- nvidia-docker2
- nvidia-container-runtime
You can avoid building the project by using my prebuilt image. This is done with the following command:
docker run --rm -it --runtime=nvidia beaujoh/coriander-and-oclgrind:1.0
If you are feeling like being more explicit, you can build and run directly outlined in the remainder of the README.
docker build -t coriander-and-oclgrind .
docker run --rm -it --runtime=nvidia coriander-and-oclgrind /bin/bash
make test