arrayfire / arrayfire/arrayfire-python

Error when using af.set_backend('cuda')

Open
#202 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
422
Forks
63
PR merge metrics
No merged PRs in 30d

Description

When I try to switch backend using `af.set_backend('cuda')`, I got error like:

![report](https://user-images.githubusercontent.com/18741082/51801038-71f55e00-2273-11e9-8007-0b17650f1ada.PNG)

It seems that I do not have cuda devices as candiated backend although I have 8 gpus in fact, and the output of `af.info()`
```
In [2]: af.info()
ArrayFire v3.6.2 (CPU, 64-bit Linux, build dc38ef1)
[0] Intel: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, 257588 MB, Max threads(44)
```
and `af.get_backend()`
```
In [2]: af.get_backend()
Out[2]: 'unified'
```
So does I missing something when installing the package?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported af.set_backend('cuda') failure and compare af.info() and af.get_backend() with the reported CPU-only output. Inspect the Python package's backend-loading and installation entry points; done means a correctly installed CUDA-capable environment exposes the CUDA backend or the missing requirement is documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.