Coder Social home page Coder Social logo

mnpusim's Introduction

mNPUsim: A Cycle-accurate Multi-core NPU simulator

Notice

2023/11/30: Need to update submodule (DRAMsim3 variant) with 'git submodule update --remote'

Simulator Outline

mNPUsim is a cycle-accurate simulator modeling NPU system with off-chip memory. Overview

Getting Started

# Load DRAMsim3 as a submodule
git submodule update --init --recursive

# Create shared library
cd DRAMsim3
make libdramsim3.so
cd ..

# Run test
make
make single_test1

Options (Set in common.h)

  • SRAM_TRACE: Generates the SRAM trace in result_path/intermediate/(sram files). If SRAM_TRACE=false, only cycle is computed. (default: false)
  • DRAMREQ_NPU_TRACE: Option for the dramreq trace in npu-side cycle. (default: false)
  • DEBUG: Debug option. (default: false)

Parameters

As shown in Makefile, it requires six parameters: 1) core architecture, 2) target network, 3) target dram, 4) npumem config, 5) result path, and 6) misc config. Each configuration has list of single configuration files and result path is for output directory.

Results

  • dramsim_output: The access information of dram, tlb, and pagetable walkers. When the dram req sent, the start-cycle is written in dram.log and the end-cycle is written in dramreq.log.
  • intermediate_config: Reconstructed configuration. Unlike original network file, it considers the GEMM translation (e.g the im2col-out convolution), absolute address translation.
  • intermediate: The intermediate results except the memory constraints. Based on this intermediate result, our simulator generates the memory requests. The format of output line is (cycle), (list of address). Therefore, only first value (cycle) is remained when SRAM_TRACE is false.
  • result: Several summary files: 1) Average cycles, 2) the size of memory footprint, 3) per layer execution cycle, and 4) PE utilization.

Publication

  • Title: mNPUsim: Evaluating the Effect of Sharing Resources in Multi-core NPUs
  • Conference: IISWC 2023
  • Authors: Soojin Hwang*, Sunho Lee*, Jungwoo Kim, Hongbeen Kim and Jaehyuk Huh (*: Equal contribution)

Citation

If you use mNPUsim for your research, please cite our paper:

@inproceedings{mnpusim,
  author = {Hwang, Soojin and Lee, Sunho and Kim, Jungwoo and Kim, Hongbeen and Huh, Jaehyuk},
  title = {{mNPUsim: Evaluating the Effect of Sharing Resources in Multi-core NPUs}},
  booktitle = {2023 IEEE International Symposium on Workload Charcterization (IISWC)},
  year = {2023},
  doi = {10.1109/IISWC59245.2023.00018}
}

mnpusim's People

Contributors

myshlee417 avatar terrafin avatar

Stargazers

 avatar  avatar yuanz avatar Felix avatar Sang Hyeok Boo avatar Icser avatar  avatar  avatar Seongwook Kim avatar HUANG Jian avatar Xilang Zhou avatar  avatar Hooray avatar Yuan Feng avatar luei&july avatar Guseul Heo avatar yuxuan-z avatar Tirumal Naidu avatar  avatar Dongha Jung avatar Yan Wang avatar HJK avatar  avatar Yeonan Ha avatar Jungwoo Kim avatar  avatar yuanqing avatar Taekyung Heo avatar

Watchers

Youngjin Kwon avatar Jungwoo Kim avatar

mnpusim's Issues

[NPU메모리 시스템]

안녕하세요~!! 좋은 코드 공유해주셔서 감사합니다. 저는 가상화에 관심히 많은 전자과 3학년 학생입니다. 얕은 지식이지만, 혹시 NPU 메모리 쪽 가상화를 할 때 메모리 사용 정보를 가져올 때 hypervisor로부터 가져오는 것이 아닌가요? 각 VM의 vNPU 메모리 사용 정보는 어떻게 가져올까요? 감사합니다!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.