Skip to content

Commit c3a273e

Browse files
committed
Merge pull request #38 from syurkevi/minor_fixes
README.md updates and interactive python output fix
2 parents 8d19947 + 80d299d commit c3a273e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ArrayFire Python Bindings
22

3-
[ArrayFire](https://github.com/arrayfire/arrayfire) is a high performance library for parallel computing wih an easy-to-use API. This project provides Python bindings for the ArrayFire library. It enables the users to write scientific computing code that is portable across CUDA, OpenCL and CPU devices.
3+
[ArrayFire](https://github.com/arrayfire/arrayfire) is a high performance library for parallel computing with an easy-to-use API. It enables users to write scientific computing code that is portable across CUDA, OpenCL and CPU devices. This project provides Python bindings for the ArrayFire library.
44

55
## Example
66

@@ -77,7 +77,7 @@ Generate a random matrix a:
7777
Minimum, Maximum: 7.825903594493866e-06 0.7556053400039673
7878
```
7979

80-
The backend selection is automated currently. Choosing a particular backend will be made available in the future.
80+
Choosing a particular backend can be done using `af.backend.set( backend_name )` where backend_name can be one of: "_cuda_", "_opencl_", or "_cpu_". The default device is chosen in the same order of preference.
8181

8282
## Requirements
8383

arrayfire/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,6 @@ def display(a):
10471047
st = expr[0].find('(') + 1
10481048
en = expr[0].rfind(')')
10491049
print('%s' % expr[0][st:en])
1050-
safe_call(backend.get().af_print_array(a.arr))
1050+
safe_call(backend.get().af_print_array(a.arr))
10511051
except:
10521052
safe_call(backend.get().af_print_array(a.arr))

0 commit comments

Comments
 (0)