Skip to content

Commit 48c80d7

Browse files
authored
feat: Add pubs needed for gpu (#1860)
Towards INT-4117. This makes some fields and functions more visible for the GPU to be able to use them. Co-authored-by: Alexander Golovanov <Sample text>
1 parent a6be3df commit 48c80d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/vm/src/system/memory/adapter/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ use crate::{
3939

4040
mod air;
4141
mod columns;
42-
pub(crate) mod records;
42+
pub mod records;
4343
#[cfg(test)]
4444
mod tests;
4545

4646
pub struct AccessAdapterInventory<F> {
4747
chips: Vec<GenericAccessAdapterChip<F>>,
48-
arena: DenseRecordArena,
48+
pub arena: DenseRecordArena,
4949
air_names: Vec<String>,
5050
}
5151

crates/vm/src/system/memory/adapter/records.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::arch::{CustomBorrow, DenseRecordArena, RecordArena, SizedRecord};
99

1010
#[repr(C)]
1111
#[derive(Debug, Clone, Copy, AlignedBytesBorrow, PartialEq, Eq, PartialOrd, Ord)]
12-
pub(crate) struct AccessRecordHeader {
12+
pub struct AccessRecordHeader {
1313
/// Iff we need to merge before, this has the `MERGE_AND_NOT_SPLIT_FLAG` bit set
1414
pub timestamp_and_mask: u32,
1515
pub address_space: u32,
@@ -22,15 +22,15 @@ pub(crate) struct AccessRecordHeader {
2222

2323
#[repr(C)]
2424
#[derive(Debug)]
25-
pub(crate) struct AccessRecordMut<'a> {
25+
pub struct AccessRecordMut<'a> {
2626
pub header: &'a mut AccessRecordHeader,
2727
// TODO(AG): optimize with some `Option` serialization stuff
2828
pub timestamps: &'a mut [u32], // len is block_size / lowest_block_size
2929
pub data: &'a mut [u8], // len is block_size * type_size
3030
}
3131

3232
#[derive(Debug, Clone)]
33-
pub(crate) struct AccessLayout {
33+
pub struct AccessLayout {
3434
/// The size of the block in elements.
3535
pub block_size: usize,
3636
/// The size of the minimal block we may split into/merge from (usually 1 or 4)

0 commit comments

Comments
 (0)