PyTorchEMD
PyTorchEMD copied to clipboard
Updated CUDA and PyTorch versions
Hello, I am interested in this code but I have CUDA 10.1 version and PyTorch 1.5. Is there a way to modify the setup accordingly ?
Thank you in advance
I've made a pull request but in the meantime, just change the deprecated AT_CHECK
with TORCH_CHECK
in the following lines and follow the installation steps.
https://github.com/daerduoCarey/PyTorchEMD/blob/e5c0feb8c15741a858362f9c397d9ed4b8b1752b/cuda/emd_kernel.cu#L16-L17
Thanks a lot! This work for me.
This works for me!(Pytorch 1.7 CUDA 10.2) Thanks a lot.
Hi, does anyone know how to compile with CUDA 11.3 PyTorch 1.11?
@XinYu-Andy I build PyTorchEMD successfully with PyTorch 1.11 and CUDA 11.0. I modified cuda/emd_kernel.cu
as follows:
- Comment
#include <THC/THC.h>
- Replace all
THCudaCheck
withC10_CUDA_CHECK
I hope this can be helpful!
2. C10_CUDA_CHECK
Thank you very much! It works for me!
i successfully build PyTorchEMD,but when i run test_emd_loss.py, there comes another problem:Segmentation fault (core dumped)。does anyone know how to solve this?
@XinYu-Andy I build PyTorchEMD successfully with PyTorch 1.11 and CUDA 11.0. I modified
cuda/emd_kernel.cu
as follows:
- Comment
#include <THC/THC.h>
- Replace all
THCudaCheck
withC10_CUDA_CHECK
I hope this can be helpful!
i successfully build PyTorchEMD,but when i run test_emd_loss.py, there comes another problem:Segmentation fault (core dumped)。does anyone know how to solve this?
Thanks to @cihanongun and @bluestyle97, I build successfully with torch 2.0.0 and CUDA 11.7 by modified cuda/emd_kernel.cu
as:
- Comment
#include <THC/THC.h>
- Repalce all
AT_CHECK
withTORCH_CHECK
- Replace all
THCudaCheck
withC10_CUDA_CHECK
- Replace all
CHECK_EQ
withTORCH_CHECK_EQ