From 69d1a4ea8d5bfe3240752d52984d4edbef4e05f7 Mon Sep 17 00:00:00 2001 From: Matthew Dooley Date: Sat, 16 May 2020 00:32:36 -0400 Subject: [PATCH] Update datatype consistency: uint to unsigned int --- Closed-form Fibonacci on GPU/fibonacci.metal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Closed-form Fibonacci on GPU/fibonacci.metal b/Closed-form Fibonacci on GPU/fibonacci.metal index e779ba8..71eb936 100644 --- a/Closed-form Fibonacci on GPU/fibonacci.metal +++ b/Closed-form Fibonacci on GPU/fibonacci.metal @@ -18,8 +18,8 @@ unsigned int fibonacci(unsigned int index); unsigned int binetsFormula(unsigned int n); // initialize methods -kernel void fibonacci(device uint* start, - device uint* result, +kernel void fibonacci(device unsigned int* start, + device unsigned int* result, unsigned int index [[thread_position_in_grid]]) { result[index] = fibonacci(*start + index);