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);