deval281shah / pytorch-gpgpu-sim

Modified version of PyTorch able to work with changes to GPGPU-Sim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyTorch Logo


##PyTorch for GPGPU-Sim using CUDNN Contributor: Jonathan Lew, University of British Columbia, Dept. of Electrical and Computer Engineering

Welcome to PyTorch for GPGPU-Sim!

This repo is based on the popular PyTorch framework, release v0.4.1, the latest release as of Aug 17, 2018. It can be found at https://github.com/pytorch/pytorch

Installation

Note: Only Linux install has been tested. Instructions for other operating systems are from the pytorch repo and are left here for your convenience.

Install

If you want to build on Windows, Visual Studio 2017 and NVTX are also needed.

Get the PyTorch source

git clone --recursive [this repo]
cd pytorch-gpgpu-sim

Install PyTorch

On Linux

python setup.py install

Use the following if you encounter root permission error:

python setup.py install --user

On macOS

MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

On Windows

set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build"
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
set DISTUTILS_USE_SDK=1
REM The following line is needed for Python 2.7, but the support for it is very experimental.
set MSSdk=1
REM As for CUDA 8, VS2015 Update 2 or up is required to build PyTorch. Use the following two lines.
set "PREBUILD_COMMAND=%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
set PREBUILD_COMMAND_ARGS=x64

call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.11
python setup.py install

GPGPU-Sim

  1. Install GPGPU-Sim with CUDNN and PyTorch support at:

  2. Follow the README to set the environment variables.

  3. export PYTORCH_BIN=/path/to/libcudnn.so

Getting Started

Three pointers to get you started:

About

Modified version of PyTorch able to work with changes to GPGPU-Sim

License:Other


Languages

Language:C++ 44.1%Language:Python 30.9%Language:Cuda 15.1%Language:C 6.1%Language:CMake 1.9%Language:Objective-C++ 1.0%Language:Shell 0.6%Language:Metal 0.2%Language:Dockerfile 0.1%Language:Makefile 0.1%Language:Batchfile 0.0%Language:HTML 0.0%Language:Objective-C 0.0%Language:CSS 0.0%Language:Vim Script 0.0%Language:Lua 0.0%