Giter VIP home page Giter VIP logo

advanced-computer-architectures's Introduction

Advanced-Computer-Architectures

Course material for Advanced Computer Architectures course.

Getting started with the repo

Fork the repository

Fork the repo using the proper button, as shown below:

Alt Text

Clone your fork

To be able to work on the project, you will need to clone it to the device.

Copy the path, as shown below:

Cloning

Create a folder with your name and surname, then

mkdir ACA/<name>_<surname>
git clone <link copied from GitHub>

Do your excercise and save the changes

Go ahead and complete the excercises. When you’re ready to submit your changes, stage and commit your changes.

In the project root folder, type:

git add .
git commit -m "<comment to the changes>"
git push

In this way, your excercise implementations are saved in your personal GitHub profile.

Usage

In the excercise directory, create the build folder, launch the cmake command and compile the sources:

# Only the first time
mkdir build
cd build
cmake ..

# Every time you have to recompile
make
./<executable_name>

Benchmarking

Add the following line to the main function in the source file:

std::cout << TM_host.duration() << ";" << TM_device.duration() << ";" << TM_host.duration() / TM_device.duration() << std::endl;

Then launch the benchmarking script in the build folder:

../../../utils/benchmark.sh <executable_name>

If you are using a Jetson board, make sure to set the power profile to max, typing:

sudo nvpmodel -m<n> # (The number may change, depending on the device, for TX2 <n>=0)
sudo jetson_clocks

Hardware details

To have a complete overview of the Jetson hardware status, type:

sudo jtop

If it isn't already installed, type:

sudo -H pip3 install -U jetson-stats
sudo systemctl restart jetson_stats.service

advanced-computer-architectures's People

Contributors

doctormartins9 avatar chiara06830 avatar micheleboldo avatar

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.