Closed kanonjz closed 4 years ago
Hi, @deepakn94 , I don't know why this error occurs after I updated PyTorch in Docker.
Is it related to file pre_hook.patch
?
Yes, please apply the patch and then re-build.
How to apply the patch?
You could try building the container directly using the Dockerfile
provided in the repository: https://github.com/msr-fiddle/pipedream/blob/master/Dockerfile.
Or you could directly try running something like this (where pre_hook.patch
is the patch in the repository, and pytorch
is the directory containing the cloned PyTorch repository),
cd pytorch && patch -p1 < pre_hook.patch && \
TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5+PTX" \
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
NCCL_INCLUDE_DIR="/usr/include/" \
NCCL_LIB_DIR="/usr/lib/" \
python setup.py install && python setup.py clean
OK, I'll try. I still don't quite understand what does the patch do
It adds implementation for a pre-hook that's not available in current PyTorch -- we need this to time operators in the profiling step.
Thanks!! @deepakn94
Going to close this.
I just want to try out the profiler.
Can I run the profiler without docker?
I am trying to compile this patch with PyTorch but getting some errors. Which base version of PyTorch is this patch for?