Skip to content

Commit

Permalink
Fix buffer memory access.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Oct 26, 2023
1 parent 47124e0 commit c762067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ static iree_status_t iree_runtime_demo_perform_mul(
(iree_hal_buffer_params_t){
// Where to allocate (host or device):
.type = IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL,
// Access to allow to this memory (this is .rodata so READ only):
.access = IREE_HAL_MEMORY_ACCESS_READ,
// Access to allow to this memory:
.access = IREE_HAL_MEMORY_ACCESS_ALL,
// Intended usage of the buffer (transfers, dispatches, etc):
.usage = IREE_HAL_BUFFER_USAGE_DEFAULT,
},
Expand Down Expand Up @@ -202,7 +202,7 @@ static iree_status_t iree_runtime_demo_perform_mul(
IREE_HAL_ENCODING_TYPE_DENSE_ROW_MAJOR,
(iree_hal_buffer_params_t){
.type = IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL,
.access = IREE_HAL_MEMORY_ACCESS_READ,
.access = IREE_HAL_MEMORY_ACCESS_ALL,
.usage = IREE_HAL_BUFFER_USAGE_DEFAULT,
},
iree_make_const_byte_span(rhs_data, sizeof(rhs_data)), &rhs);
Expand Down

0 comments on commit c762067

Please sign in to comment.