Skip to content

Submitted By: Milin N. Bhade (21404), Prashant M. Vithule (21285)

Notifications You must be signed in to change notification settings

milinbhade1214/HPCA-Assignment-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HPCA Assignment

Optimize reducing matrix multiplication using hardware counters. Contained are two folders:

  • PartA: Contains setup for single-threaded and multi-threaded program.
  • PartB: Contains setup for GPU program.

Each folder contains two sub-folders, a Makefile, and a main program.

  • Makefile: Contains commands necessary to compile, generate inputs, and run the program.
  • data folder: Contains program that generates input, and will contain input once generated.
  • header folder: Files containing the function that performs the operation. Modify the files in this folder.
  • main.cpp: Program that takes inputs and executes the functions. DO NOT MODIFY THIS.

Navigate to each folder to begin setting up the system. Inside each folder do the following:

Compiling and generating input

Use the following command to compile the programs and generate required input:

make

PART A

Running program

You can use make to run the executable with the following command:

make run

Alternatively, you can manually run the program for the different input sets using the following commands:

./rmm data/input_4096.in
./rmm data/input_8192.in
./rmm data/input_16384.in

PART B

To compile the code for use on native GPU use the following command:

make cmm_server

For use with GPGPU-Sim, additional flags are required during compilation, which can be done with the following command:

make sim

You can use make to run the executable with the following command for native execution:

.\cmm_server.exe .\data\{generated_input_data_file}
ex. {generated_input_data_file}  :  input_16384.in

When running on GPGPU-Sim, use the following command instead:

make run_sim

About

Submitted By: Milin N. Bhade (21404), Prashant M. Vithule (21285)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published