Skip to content

Commit

Permalink
Adding fd-based file handle support to the HAL. (iree-org#19514)
Browse files Browse the repository at this point in the history
This allows multi-threaded unbuffered IO via pread/pwrite (with an
emulation on Windows).
  • Loading branch information
benvanik authored Dec 18, 2024
1 parent 4c00a22 commit 101f55c
Show file tree
Hide file tree
Showing 7 changed files with 468 additions and 1 deletion.
2 changes: 2 additions & 0 deletions runtime/src/iree/hal/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ iree_runtime_cc_library(
iree_runtime_cc_library(
name = "files",
srcs = [
"fd_file.c",
"file_registry.c",
"memory_file.c",
],
hdrs = [
"fd_file.h",
"file_registry.h",
"memory_file.h",
],
Expand Down
2 changes: 2 additions & 0 deletions runtime/src/iree/hal/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ iree_cc_library(
NAME
files
HDRS
"fd_file.h"
"file_registry.h"
"memory_file.h"
SRCS
"fd_file.c"
"file_registry.c"
"memory_file.c"
DEPS
Expand Down
Loading

0 comments on commit 101f55c

Please sign in to comment.