Skip to content

ashuthosh-mr/profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PARISCV profiler

Instruction profiler that suggests extensions, sub-instructions.

Getting Started

Welcome to our project! This guide will help you get started quickly.

Dependencies

Before running the project, make sure you have the following dependencies installed:

After installing the dependencies, next install the profiler.

Installing PARISCV

To install PARISCV, follow these steps:

  1. Clone the repository:

    git clone https://github.com/ashuthosh-mr/profiler.git
  2. Navigate to the project directory:

    cd profiler
  3. Unzip the necesary library files:

    unxz internal_folder.tar.xz
    tar -xvf internal_folder.tar
  4. Change the permission of ext1 and pariscv.sh:

    chmod +x pariscv.sh ext1
  5. To profile the region of interest in the application, place this line before the kernel:

    unsigned long cycles_start,cycles_end;
    asm volatile ("rdcycle %0" : "=r" (cycles_start));
  6. Similarly, place thhis line after the kernel.

    asm volatile ("rdcycle %0" : "=r" (cycles_end));
    printf("Total cycles:%d\n",cycles_end-cycles_start);

Profiling

To profile any given application, just run:

./pariscv.sh

Default ISA, MABI, source names are used as shown in pariscv.sh. But one can further specify the ISA flags suppported, mabi and path to the source file through the following flags:

./pariscv.sh ISA=rv64gcv_zba_zbb_zbc MABI=lp64d SOURCE=../../main.c

The output shows the total cycles, commonly used extensions and commonly used instructions within each extension.

You can find detailed documentation and usage examples on the project's web page.

About

Instruction profiler that suggests extensions, sub-instructions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors