Giter Site home page Giter Site logo

ramitchell / legate.hello Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nv-legate/legate.hello

0.0 0.0 0.0 26 KB

Legate Hello World Pedagogical Library

License: Apache License 2.0

C++ 45.45% Python 44.32% C 2.23% Cuda 5.28% Makefile 2.72%

legate.hello's Introduction

Legate Hello World

This repository contains a "Hello World" introduction to building a small Legate library.

Users can begin by investigating the legate/hello/runtime.py file which demonstrates the necessary code for setting up a LegateLibrary object, launching Legion tasks to perform computations, and returning data objects that implement the __legate_data_interface__.

From there, users can investigate the files in the src/ directory. The src/hello* files demonstrate how to register tasks with the Legion runtime using Legate APIs. Implementations of various different task variants for CPUs, OpenMP, and GPU processors can be found in src/task.cc and src/task.cu. The src/mapper.cc file shows a small customization to a Legion mapper for mapping the tasks produced by the Legate Hello world example.

There is a test program in tests/hello.py that will demonstrate running the Hello World library code in practice.

The install.py and setup.py scripts in this directory coupled with src/Makefile will provide a good framework for setting up a build system for any Legate library.

If you have questions, please contact us at legate(at)nvidia.com.

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.