Use gem5 ops ISA method instead of ADDR method
This commit is contained in:
@@ -10,6 +10,7 @@ use half::f16;
|
||||
use nalgebra::Matrix;
|
||||
use pim_isa::BankMode;
|
||||
use pim_os::{
|
||||
m5op,
|
||||
pim::{
|
||||
self,
|
||||
array::{DummyArray, PimMatrixArena, PimStorage, NUMBER_OF_BANKS},
|
||||
@@ -65,12 +66,18 @@ pub extern "C" fn main() {
|
||||
|
||||
pim::state::set_bank_mode(BankMode::PimAllBank);
|
||||
|
||||
matrix_matrix_mul::execute(
|
||||
pim_matrix_arena0,
|
||||
pim_matrix_arena1,
|
||||
pim_matrix_arena2,
|
||||
dummy_array.as_ref(),
|
||||
);
|
||||
m5op::reset_stats();
|
||||
|
||||
for _ in 0..100 {
|
||||
matrix_matrix_mul::execute(
|
||||
pim_matrix_arena0,
|
||||
pim_matrix_arena1,
|
||||
pim_matrix_arena2,
|
||||
dummy_array.as_ref(),
|
||||
);
|
||||
}
|
||||
|
||||
m5op::dump_stats();
|
||||
|
||||
pim::state::set_bank_mode(BankMode::SingleBank);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user