Skip to content

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

License

Notifications You must be signed in to change notification settings

deval281shah/pytorch-gpgpu-sim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 44.0%
  • Python 30.9%
  • Cuda 15.1%
  • C 6.1%
  • CMake 1.9%
  • Objective-C++ 1.0%
  • Other 1.0%