The environment variable BELLMAN_PLATFORM
determines which backend will be used.
To use the AMD backend, you can do something like:
export BELLMAN_PLATFORM="AMD Accelerated Parallel Processing"
RUST_LOG=info cargo test --features gpu -- --exact multiexp::gpu_multiexp_consistency --nocapture
- We had trouble in Ubuntu 20.04 when running a single computer with both NVIDIA and AMD cards.
- The initial kernel compilation may take > 60sec at start up. This is not a problem afterwards. A possible mitigation would be to add kernel binary caching in the ocl-fil crate.