Skip to content

Commit 7364976

Browse files
committed
Fixing the Helloworld example to reflect change in API
1 parent 741ec48 commit 7364976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/HelloWorld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static void main(String[] args) {
4444
C = Array.add(A, B);
4545

4646
// Get result back to host memory
47-
res = C.host();
47+
res = C.getFloatArray();
4848

4949
for(int i = 0; i < total; i++) {
5050
str = Integer.toString(i) + ". ";

0 commit comments

Comments
 (0)