Giter VIP home page Giter VIP logo

dpu_demo's Introduction

UPMEM Logo

The UPMEM Processing-In-Memory solution consists of a pool of programmable co-processors, the DPUs, integrated in the memory.

Content

Examples of DPU programs generated with UPMEM DPU SDK

Requirements

Building the programs

make to build the programs.

make clean removes the resulting builds.

Executing

The simplest way to execute the programs is to run make test. Otherwise, you may run individual tests manually by executing the binary generated in the build folder of the targeted program.

List of demo programs

checksum

The host application generates a random file of 8MB, and schedules multiple DPUs co-processors to compute the checksum on this file. As sanity check it compares host result with the DPU results, and prints out the DPU performances:

  • Total number of DPU cycles executed
  • The number of DPU cycles per byte processed

Macros can be used to change the dimensions of the program:

  • NR_TASKLETS set the number of tasklets used by the dpu program (default: 16)
  • NR_DPUS set the number of dpus used by the host program (default: 1)

example: make test NR_TASKLETS=1 NR_DPUS=DPU_ALLOCATE_ALL

Two implementations of the Host application are provided:

  • host.c using the C Host API
  • host.py using the Python Host API

make test will run both implementations. Use the Makefile targets test_c or test_python to specify an implementation.

Note: because the input file is randomly generated, the checksum may differ between the two implementations.

SDK Documentation

https://sdk.upmem.com/stable/

dpu_demo's People

Contributors

gfroid avatar dlagneux-upmem avatar jordichauzi avatar furodet 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.