Skip to content

Instantly share code, notes, and snippets.

View hvasbath's full-sized avatar

Hannes Vasyura-Bathke hvasbath

View GitHub Profile
@hvasbath
hvasbath / pytorch_build.log
Created November 4, 2017 08:51
compilation error from source
vasyurhm@vasyurhm:~/Software/pytorch$ python setup.py clean
Traceback (most recent call last):
File "setup.py", line 434, in <module>
main_sources += split_types("torch/csrc/Tensor.cpp")
File "/home/vasyurhm/Software/pytorch/tools/setup_helpers/split_types.py", line 53, in split_types
with open(gen_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/vasyurhm/Software/pytorch/torch/csrc/generated/TensorDouble.cpp'
vasyurhm@vasyurhm:~/Software/pytorch$ sudo python setup.py clean
running clean
vasyurhm@vasyurhm:~/Software/pytorch$ sudo python setup.py install
@hvasbath
hvasbath / pt_skeleton.py
Created May 20, 2018 04:27
MPI skeleton for PT algorithm
#!/usr/bin/env python
"""
Parallel Tempering algorithm with mpi4py
"""
from __future__ import print_function
from mpi4py import MPI
from numpy import random
nsamples = 100