From 4ab3b821b6a5588bd5e01985aacd250d801a3406 Mon Sep 17 00:00:00 2001 From: syurkevi Date: Mon, 14 Sep 2015 17:25:00 -0400 Subject: [PATCH 1/2] README reorganization and minor typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 687d00f09..612d78b08 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ArrayFire Python Bindings -[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. +[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. ## Example @@ -77,7 +77,7 @@ Generate a random matrix a: Minimum, Maximum: 7.825903594493866e-06 0.7556053400039673 ``` -The backend selection is automated currently. Choosing a particular backend will be made available in the future. +Choosing a particular backend can be done using `af.backend.set( backend_name )` where backend_name can be one of: "_cuda_" or "_opencl_", or "_cpu_". The default device is chosen in the same order of preference. ## Requirements From 80d299db5422e85fddd7256cc25ca67d51226bab Mon Sep 17 00:00:00 2001 From: syurkevi Date: Mon, 14 Sep 2015 17:25:57 -0400 Subject: [PATCH 2/2] fix missing console output from interactive python interpreter --- README.md | 2 +- arrayfire/array.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 612d78b08..45e0f4572 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ Generate a random matrix a: Minimum, Maximum: 7.825903594493866e-06 0.7556053400039673 ``` -Choosing a particular backend can be done using `af.backend.set( backend_name )` where backend_name can be one of: "_cuda_" or "_opencl_", or "_cpu_". The default device is chosen in the same order of preference. +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. ## Requirements diff --git a/arrayfire/array.py b/arrayfire/array.py index 1314c641e..be0dad70a 100644 --- a/arrayfire/array.py +++ b/arrayfire/array.py @@ -1047,6 +1047,6 @@ def display(a): st = expr[0].find('(') + 1 en = expr[0].rfind(')') print('%s' % expr[0][st:en]) - safe_call(backend.get().af_print_array(a.arr)) + safe_call(backend.get().af_print_array(a.arr)) except: safe_call(backend.get().af_print_array(a.arr))