arrayfire / arrayfire/arrayfire

Environment variable to choose device given multiple backends

Open
#1,909 0 comments 2 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
4.9k
Forks
555
Avg merge
1h 24m
Merged PRs (30d)
1

Description

Suppose one has two backends, say `CUDA` and `OPENCL`, then there is currently no way to choose a device of a specific backend using an environment variable, like the ones listed in http://arrayfire.org/docs/configuring_environment.htm

It'd be great if we have an option like `AF_DEFAULT_DEVICE=OPENCL_1` which would set `device=1` with the `OPENCL` backend.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.