Skip to content

Latest commit

 

History

History

packaging

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Building torchcsprng packages for release

Anaconda packages

Linux

nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/conda-cuda bash
pushd remote/conda

./build_csprng.sh 9.0
./build_csprng.sh 10.0
./build_csprng.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchcsprng*.bz2

OSX

# create a fresh anaconda environment / install and activate it
conda install -y conda-build anaconda-client
./build_csprng.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchcsprng*.bz2

Windows

# Open `Git Bash` and change dir to `conda`
./build_csprng.sh 9.0
./build_csprng.sh 10.0
./build_csprng.sh cpu

# copy packages to a output directory
# anaconda upload -u pytorch torchcsprng*.bz2

Wheels

Linux

pushd wheel

nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda90:latest bash
cd remote
./linux_manywheel.sh cu90

rm -rf /usr/local/cuda*
./linux_manywheel.sh cpu
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda100:latest bash
cd remote
./linux_manywheel.sh cu100

wheels are in the folders cpu, cu90, cu100.

You can upload the cu90 wheels to twine with twine upload *.whl. Which wheels we upload depends on which wheels PyTorch uploads as default, and right now, it's cu90.

OSX

pushd wheel
./osx_wheel.sh

Windows

set PYTORCH_REPO=pytorch

pushd windows
call build_csprng.bat 90 0.3.0 1
call build_csprng.bat 100 0.3.0 1
call build_csprng.bat cpu 0.3.0 1

wheels are in the current folder.

You can upload them to twine with twine upload *.whl