Skip to content

Commit f2b1f23

Browse files
committed
Add support load and store
1 parent 8777e0e commit f2b1f23

File tree

5 files changed

+454
-208
lines changed

5 files changed

+454
-208
lines changed

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ API Reference
99
api/reductions.rst
1010
api/mathematical.rst
1111
api/conditional.rst
12+
api/memory_read_write.rst
1213

docs/build_api.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def build_doxygen_page(name, items):
2929
for symbol in symbols:
3030
content += f".. doxygen{directive}:: kernel_float::{symbol}\n\n"
3131

32-
stripped_name = name.lower().replace(" ", "_")
32+
stripped_name = name.lower().replace(" ", "_").replace("/", "_")
3333
filename = f"api/{stripped_name}.rst"
3434
print(f"writing to {filename}")
3535

@@ -197,6 +197,17 @@ def build_index_page(groups):
197197
("where", "where(const C&, const L&, const R&)"),
198198
("where", "where(const C&, const L&)"),
199199
("where", "where(const C&)"),
200+
],
201+
"Memory read/write": [
202+
("load", "load(const T*, const I&)"),
203+
("load", "load(const T*, const I&, const M&)"),
204+
("loadn", "loadn(const T*, ptrdiff_t)"),
205+
("loadn", "loadn(const T*, ptrdiff_t, ptrdiff_t)"),
206+
("store", "store(const V&, T *ptr, const I&)"),
207+
("store", "store(const V&, T *ptr, const I&, const M&)"),
208+
("storen", "storen(const V&, T*, ptrdiff_t)"),
209+
("storen", "storen(const V&, T*, ptrdiff_t, ptrdiff_t)"),
210+
("aligned_ptr", "aligned_ptr", "struct"),
200211
]
201212
}
202213

include/kernel_float.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "kernel_float/fp16.h"
99
#include "kernel_float/iterate.h"
1010
#include "kernel_float/macros.h"
11+
#include "kernel_float/memory.h"
1112
#include "kernel_float/meta.h"
1213
#include "kernel_float/prelude.h"
1314
#include "kernel_float/reduce.h"

0 commit comments

Comments
 (0)