All Projects → chrischoy → Makepytorchplusplus

chrischoy / Makepytorchplusplus

How and why you want to make your pytorch CUDA/CPP extension with a Makefile

Projects that are alternatives of or similar to Makepytorchplusplus

Learning Cmake
learning cmake
Stars: ✭ 2,524 (+1677.46%)
Mutual labels:  makefile, tutorial
Lc3 Vm
Write your own virtual machine for the LC-3 computer!
Stars: ✭ 631 (+344.37%)
Mutual labels:  makefile, tutorial
Crystal Book
Crystal docs at https://crystal-lang.org/reference
Stars: ✭ 275 (+93.66%)
Mutual labels:  makefile, tutorial
Do more with twitter data
Tutorials for getting the most out of Twitter data.
Stars: ✭ 78 (-45.07%)
Mutual labels:  makefile, tutorial
Aiohttp Demos
Demos for aiohttp project
Stars: ✭ 517 (+264.08%)
Mutual labels:  makefile, tutorial
Drone Tutorial
Drone Continuous Delivery Documentation using docker-compose
Stars: ✭ 117 (-17.61%)
Mutual labels:  makefile, tutorial
Xs Fun
XS is fun: a simple and easy tutorial on writing Perl XS
Stars: ✭ 135 (-4.93%)
Mutual labels:  tutorial
Love2d arkanoid tutorial
Tutorial on making a full-featured arkanoid (breakout)-type game with LÖVE framework.
Stars: ✭ 137 (-3.52%)
Mutual labels:  tutorial
Norrisbot
a Slack bot that kicks asses (roundhouse-kicks to be accurate...)
Stars: ✭ 134 (-5.63%)
Mutual labels:  tutorial
Jobeet Tutorial
📖 Symfony 4.2 Jobeet Tutorial
Stars: ✭ 134 (-5.63%)
Mutual labels:  tutorial
Developer
developer roadmap. use growth https://github.com/phodal/growth replace this
Stars: ✭ 1,699 (+1096.48%)
Mutual labels:  makefile
Tr.javascript.info
Modern JavaScript Tutorial in Turkish
Stars: ✭ 139 (-2.11%)
Mutual labels:  tutorial
Easyrss
Google Reader Client for Android
Stars: ✭ 137 (-3.52%)
Mutual labels:  makefile
Deeplearningfornlpinpytorch
An IPython Notebook tutorial on deep learning for natural language processing, including structure prediction.
Stars: ✭ 1,744 (+1128.17%)
Mutual labels:  tutorial
Openfpgaduino
All open source file and project for OpenFPGAduino project
Stars: ✭ 137 (-3.52%)
Mutual labels:  makefile
Golang For Nodejs Developers
Examples of Golang compared to Node.js for learning
Stars: ✭ 2,698 (+1800%)
Mutual labels:  tutorial
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (-2.11%)
Mutual labels:  tutorial
Human Phenotype Ontology
Ontology for the description of human clinical features
Stars: ✭ 134 (-5.63%)
Mutual labels:  makefile
React Curd
【React全家桶入门系列文章项目】http://blog.csdn.net/awaw00/article/category/6692955
Stars: ✭ 137 (-3.52%)
Mutual labels:  tutorial
Reactjs Authentication Tutorial
Chuck Norris World App - A sample app that shows how to add authentication to a ReactJS app
Stars: ✭ 139 (-2.11%)
Mutual labels:  tutorial

Developing a Pytorch CPP/CUDA Extension with a Makefile

Pytorch cpp extensions provides a good way to augment pytorch with custom functions. The cpp-extension uses the setuptool to compile files. However, as it is mainly used for deployment rather than debugging and development, using the setuptool for development can be slow and cumbersome.

In this repository, I provide an alternative way to compile and debug your custom extension with a makefile. The associated tutorial can be found at the blog post.

Installation

You must have torch installed in your current (virtual environment) python.

git clone https://github.com/chrischoy/MakePytorchPlusPlus
cd MakePytorchPlusPlus
python setup.py install

It automatically selects the maximum number of CPU for parallel compilation.

Running the example

python example.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].