Skip to content

Commit d303477

Browse files
authored
Update README.md
1 parent 386ec2f commit d303477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Here is an example of the library at work:
1010
import arrayfire as af
1111

1212
# Set any backend and device (optional: 'cuda', 'opencl', 'oneapi', 'cpu')
13-
af.setBackend(af.BackendType.cuda)
14-
af.setDevice(0)
13+
af.set_backend(af.BackendType.cuda)
14+
af.set_device(0)
1515

1616
# Monte Carlo estimation of pi
1717
def calc_pi_device(samples):

0 commit comments

Comments
 (0)