Skip to content

Instantly share code, notes, and snippets.

Avatar

Hannes Vasyura-Bathke hvasbath

View GitHub Profile
@hvasbath
hvasbath / pt_skeleton.py
Created May 20, 2018
MPI skeleton for PT algorithm
View pt_skeleton.py
#!/usr/bin/env python
"""
Parallel Tempering algorithm with mpi4py
"""
from __future__ import print_function
from mpi4py import MPI
from numpy import random
nsamples = 100
@hvasbath
hvasbath / pytorch_build.log
Created Nov 4, 2017
compilation error from source
View pytorch_build.log
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