PyTorchEMD
PyTorchEMD copied to clipboard
install failed
PyTorchEMD/cuda/emd_kernel.cu(181): error: identifier "AT_CHECK" is undefined
in running setup (base) server1@server1:/data/PythonCodes/XiaoYuan/PyTorchEMD$ python setup.py install running install running bdist_egg running egg_info creating emd_ext.egg-info writing emd_ext.egg-info/PKG-INFO writing dependency_links to emd_ext.egg-info/dependency_links.txt writing top-level names to emd_ext.egg-info/top_level.txt writing manifest file 'emd_ext.egg-info/SOURCES.txt' reading manifest file 'emd_ext.egg-info/SOURCES.txt' writing manifest file 'emd_ext.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext /home/server1/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py:782: UserWarning: The detected CUDA version (11.1) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'emd_cuda' extension creating /data/PythonCodes/XiaoYuan/PyTorchEMD/build creating /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7 creating /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda Emitting ninja build file /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] /home/server1/home/cuda11.1/bin/nvcc -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/server1/home/cuda11.1/include -I/home/server1/anaconda3/include/python3.7m -c -c /data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu -o /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda/emd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=emd_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda/emd_kernel.o /home/server1/home/cuda11.1/bin/nvcc -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/server1/home/cuda11.1/include -I/home/server1/anaconda3/include/python3.7m -c -c /data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu -o /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda/emd_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=emd_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu(181): error: identifier "AT_CHECK" is undefined
/data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu(268): error: identifier "AT_CHECK" is undefined
/data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu(385): error: identifier "AT_CHECK" is undefined
3 errors detected in the compilation of "/data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd_kernel.cu". [2/2] c++ -MMD -MF /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda/emd.o.d -pthread -B /home/server1/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/server1/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/server1/home/cuda11.1/include -I/home/server1/anaconda3/include/python3.7m -c -c /data/PythonCodes/XiaoYuan/PyTorchEMD/cuda/emd.cpp -o /data/PythonCodes/XiaoYuan/PyTorchEMD/build/temp.linux-x86_64-3.7/cuda/emd.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=emd_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/server1/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build env=env) File "/home/server1/anaconda3/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 26, in
hi, you can refer to this