libxsmm / tpp-pytorch-extension

Intel® Tensor Processing Primitives extension for Pytorch*

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intel(R) Tensor Processing Primitives extension for PyTorch*

Copyright (c) Intel corp.

Pre-requisite

gcc v8.3.0 or higher

Installation

Setup conda environment using utils/setup_conda.sh

# Create new conda env 
# It creates an env.sh script for activating conda env
$bash utils/setup_conda.sh [-p <conda_install_path>]

Install the extension:

# Source the env.sh and install the extension
$source env.sh
$git submodule update --init
$python setup.py install

For multi-node runs:

(Optional) install torch_ccl module:

$bash utils/install_torch_ccl.sh

Examples

BERT

About

Intel® Tensor Processing Primitives extension for Pytorch*

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 70.6%Language:Python 27.5%Language:Shell 1.7%Language:C 0.2%Language:Makefile 0.0%