Skip to content

Commit

Permalink
[Mojo][Kernels] Fix signature of adaptive function in Memset notebook…
Browse files Browse the repository at this point in the history
… (#20919)

Should be the last notebook that uses `search`, and therefore the
adaptive function must have only position-only arguments.

modular-orig-commit: 2ea7ecfb598f312b49f517f9a2a26d28c4a809a2
  • Loading branch information
laszlokindrat authored Sep 7, 2023
1 parent 84632f2 commit ee397da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/Memset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -675,7 +676,7 @@
"outputs": [],
"source": [
"@adaptive\n",
"fn memset_autotune_impl(ptr: BufferPtrType, value: ValueType, count: Int):\n",
"fn memset_autotune_impl(ptr: BufferPtrType, value: ValueType, count: Int, /):\n",
" memset_impl_layer[-100, 100](ptr, value, count)"
]
},
Expand Down

0 comments on commit ee397da

Please sign in to comment.