teddykoker / torchsort

Fast, differentiable sorting and ranking in PyTorch
https://pypi.org/project/torchsort/
Apache License 2.0
774 stars 34 forks source link

Failed building wheel when trying to install #13

Closed roeeben closed 3 years ago

roeeben commented 3 years ago

On my potato GPU-less desktop pip install torchsort works great in the anaconda prompt, but on another machine I get a "failed building wheel" followed by a huge error message. The environment works fine with lots of libraries and I'm running a project with it, it's just torchsort that does this problem for me. Do you have any clue what could cause that? Thanks!

teddykoker commented 3 years ago

Hi! Would you be able to provide the error message?

teddykoker commented 3 years ago

Closing due to inactivity, will reopen if OP replies

juanjo3ns commented 3 years ago

I might have the same problem trying to install it in a Google Colab: Collecting torchsort Downloading https://files.pythonhosted.org/packages/0b/bb/957172f82304cc60ed245c2d5bad8e84ed619fd49fda58d3803da5931bd0/torchsort-0.1.3.tar.gz Requirement already satisfied: torch in /usr/local/lib/python3.7/dist-packages (from torchsort) (1.8.1+cu101) Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from torch->torchsort) (1.19.5) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from torch->torchsort) (3.7.4.3) Building wheels for collected packages: torchsort Building wheel for torchsort (setup.py) ... error ERROR: Failed building wheel for torchsort Running setup.py clean for torchsort Failed to build torchsort Installing collected packages: torchsort Running setup.py install for torchsort ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dca5svvq/torchsort/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dca5svvq/torchsort/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4bv6m6rk/install-record.txt --single-version-externally-managed --compile Check the logs for full command output. Any idea?

teddykoker commented 3 years ago

Hey @juanjo3ns, the issue here is that with the CPU runtime, Collab has nvcc installed, but no CUDA runtime. Running the following installs fine on the CPU runtime:

TORCH_CUDA_ARCH_LIST="Pascal;Volta;Turing;Ampere" pip install torchsort

If you are using the GPU runtime, the TORCH_CUDA_ARCH_LIST environment variable can be omitted as it can infer the architecture from the runtime.

Hope this helps! - Teddy

juanjo3ns commented 3 years ago

True, my bad. I thought I had a GPU runtime by default, which I usually have. Thanks @teddykoker!

rsnelson1 commented 1 year ago

Hello! When I try "pip install torchsort" or "TORCH_CUDA_ARCH_LIST="Pascal;Volta;Turing;Ampere" pip install torchsort"

I get the following error message:

Building wheels for collected packages: torchsort
  Building wheel for torchsort (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/deborahnelson/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q0/kvsbhs_163d77k55d0j2djdr0000gn/T/pip-install-4nqt7enz/torchsort_474857f6c87e4a8fb80671a8a16ef647/setup.py'"'"'; __file__='"'"'/private/var/folders/q0/kvsbhs_163d77k55d0j2djdr0000gn/T/pip-install-4nqt7enz/torchsort_474857f6c87e4a8fb80671a8a16ef647/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/q0/kvsbhs_163d77k55d0j2djdr0000gn/T/pip-wheel-kk4gucu8
       cwd: /private/var/folders/q0/kvsbhs_163d77k55d0j2djdr0000gn/T/pip-install-4nqt7enz/torchsort_474857f6c87e4a8fb80671a8a16ef647/
  Complete output (27 lines):
  running bdist_wheel
  /Users/deborahnelson/opt/anaconda3/lib/python3.9/site-packages/torch/utils/cpp_extension.py:387: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
    warnings.warn(msg.format('we could not find ninja.'))
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.9
  creating build/lib.macosx-10.9-x86_64-3.9/torchsort
  copying torchsort/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/torchsort
  copying torchsort/ops.py -> build/lib.macosx-10.9-x86_64-3.9/torchsort
  running egg_info
  writing torchsort.egg-info/PKG-INFO
  writing dependency_links to torchsort.egg-info/dependency_links.txt
  writing requirements to torchsort.egg-info/requires.txt
  writing top-level names to torchsort.egg-info/top_level.txt
  reading manifest file 'torchsort.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'torchsort.egg-info/SOURCES.txt'
  copying torchsort/isotonic_cpu.cpp -> build/lib.macosx-10.9-x86_64-3.9/torchsort
  copying torchsort/isotonic_cuda.cu -> build/lib.macosx-10.9-x86_64-3.9/torchsort
  running build_ext
  building 'torchsort.isotonic_cpu' extension
  creating build/temp.macosx-10.9-x86_64-3.9
  creating build/temp.macosx-10.9-x86_64-3.9/torchsort
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/deborahnelson/opt/anaconda3/include -arch x86_64 -I/Users/deborahnelson/opt/anaconda3/include -fPIC -O2 -isystem /Users/deborahnelson/opt/anaconda3/include -arch x86_64 -I/Users/deborahnelson/opt/anaconda3/lib/python3.9/site-packages/torch/include -I/Users/deborahnelson/opt/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/Users/deborahnelson/opt/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/Users/deborahnelson/opt/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/Users/deborahnelson/opt/anaconda3/include/python3.9 -c torchsort/isotonic_cpu.cpp -o build/temp.macosx-10.9-x86_64-3.9/torchsort/isotonic_cpu.o -Xpreprocessor -fopenmp -ffast-math -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=isotonic_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for torchsort
  Running setup.py clean for torchsort
Failed to build torchsort

Do you know how I could fix this?

Thanks!

teddykoker commented 1 year ago

Hi @rsnelson1, per the error message:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

You must have a incomplete installation of the xcode dev tools. This is likely fixed with by running the following on the command line:

xcode-select --install

This issue is completely unrelated to torchsort. See this stack overflow for more details. Let me know if you are still running into issues!

mvsajay commented 6 months ago

@teddykoker Can you help me with this please ?

pip install torchsort Defaulting to user installation because normal site-packages is not writeable Collecting torchsort Using cached torchsort-0.1.9.tar.gz (12 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: torch in /data3/home/ajaymamidi/.local/lib/python3.10/site-packages (from torchsort) (1.11.0+cu115) Requirement already satisfied: typing-extensions in /data3/home/ajaymamidi/.local/lib/python3.10/site-packages (from torch->torchsort) (4.11.0) Building wheels for collected packages: torchsort Building wheel for torchsort (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [106 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/torchsort copying torchsort/ops.py -> build/lib.linux-x86_64-cpython-310/torchsort copying torchsort/init.py -> build/lib.linux-x86_64-cpython-310/torchsort running egg_info writing torchsort.egg-info/PKG-INFO writing dependency_links to torchsort.egg-info/dependency_links.txt writing requirements to torchsort.egg-info/requires.txt writing top-level names to torchsort.egg-info/top_level.txt reading manifest file 'torchsort.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'torchsort.egg-info/SOURCES.txt' copying torchsort/isotonic_cpu.cpp -> build/lib.linux-x86_64-cpython-310/torchsort copying torchsort/isotonic_cuda.cu -> build/lib.linux-x86_64-cpython-310/torchsort running build_ext building 'torchsort.isotonic_cpu' extension creating /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310 creating /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort Emitting ninja build file /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] c++ -MMD -MF /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/TH -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/torchsort/isotonic_cpu.cpp -o /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cpu.o -fopenmp -ffast-math -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 x86_64-linux-gnu-g++ -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 /tmp/pip-install-ul4qoovz/torchsort_a25939e73656 4ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cpu.o -L/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/lib -L/usr/lib/x86_64-linux-gnu -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-310/torchsort/isotonic_cpu.cpython-310-x86_64-linux-gnu.so building 'torchsort.isotonic_cuda' extension Emitting ninja build file /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] /usr/bin/nvcc -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-pa ckages/torch/include/torch/csrc/api/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/TH -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/torchsort/isotonic_cuda.cu -o /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14 FAILED: /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cuda.o /usr/bin/nvcc -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages /torch/include/torch/csrc/api/include -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/TH -I/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/torchsort/isotonic_cuda.cu -o /tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/build/temp.linux-x86_64-cpython-310/torchsort/isotonic_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14 /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 function(_Functor&& __f)
^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 operator=(_Functor&& __f)

^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1740, in _run_ninja_build subprocess.run( File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, 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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-ul4qoovz/torchsort_a25939e736564ccfa9def5865d0ee3b2/setup.py", line 52, in <module>
      setup(
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 104, in setup
      return distutils.core.setup(**attrs)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run
      self.run_command(cmd_name)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 91, in run
      _build_ext.run(self)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 741, in build_extensions
      build_ext.build_extensions(self)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
      self._build_extensions_serial()
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
      self.build_extension(ext)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 252, in build_extension
      _build_ext.build_extension(self, ext)
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
      objects = self.compiler.compile(
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 562, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/data3/home/ajaymamidi/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchsort Running setup.py clean for torchsort Failed to build torchsort ERROR: Could not build wheels for torchsort, which is required to install pyproject.toml-based projects

teddykoker commented 6 months ago

Looks like your error is /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:. Perhaps try using a newer version of gcc

mvsajay commented 6 months ago

Looks like your error is /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:. Perhaps try using a newer version of gcc

Thank you

Harsh-Yadav-02 commented 6 months ago

Looks like your error is /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:. Perhaps try using a newer version of gcc

I have even tried updating the gcc, can you tell me what the issue is with my code?`(base) E:\UMMAFormer-master\UMMAFormer-main>pip install torchsort WARNING: Ignoring invalid distribution -rotobuf (c:\programdata\anaconda3\lib\site-packages) Collecting torchsort Using cached torchsort-0.1.9.tar.gz (12 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: torch in c:\programdata\anaconda3\lib\site-packages (from torchsort) (1.11.0) Requirement already satisfied: typing_extensions in c:\programdata\anaconda3\lib\site-packages (from torch->torchsort) (4.4.0) Building wheels for collected packages: torchsort Building wheel for torchsort (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [1228 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\torchsort copying torchsort\ops.py -> build\lib.win-amd64-cpython-310\torchsort copying torchsort__init__.py -> build\lib.win-amd64-cpython-310\torchsort running egg_info writing torchsort.egg-info\PKG-INFO writing dependency_links to torchsort.egg-info\dependency_links.txt writing requirements to torchsort.egg-info\requires.txt writing top-level names to torchsort.egg-info\top_level.txt reading manifest file 'torchsort.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'torchsort.egg-info\SOURCES.txt' copying torchsort\isotonic_cpu.cpp -> build\lib.win-amd64-cpython-310\torchsort copying torchsort\isotonic_cuda.cu -> build\lib.win-amd64-cpython-310\torchsort running build_ext C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'torchsort.isotonic_cpu' extension creating C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310 creating C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release creating C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort Emitting ninja build file C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\ProgramData\anaconda3\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\THC -IC:\ProgramData\anaconda3\include -IC:\ProgramData\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" -c C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp /FoC:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cpu.obj -fopenmp -ffast-math -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=isotonic_cpu -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 cl : Command line warning D9002 : ignoring unknown option '-fopenmp' cl : Command line warning D9002 : ignoring unknown option '-ffast-math' C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/macros/Macros.h(142): warning C4067: unexpected tokens following preprocessor directive - expected a newline C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::impl::InlineDeviceGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/DeviceGuard.h(178): note: see reference to class template instantiation 'c10::impl::InlineOptionalDeviceGuard' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/impl/InlineDeviceGuard.h(427): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineDeviceGuard>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::impl::InlineDeviceGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::impl::InlineDeviceGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::impl::InlineDeviceGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::impl::InlineDeviceGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::TensorBase ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBase.h(933): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::TensorBase ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::TensorBase ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::TensorBase ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::TensorBase ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::Tensor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(502): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::Tensor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::Tensor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::Tensor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::Tensor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::Generator ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(576): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::Generator ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::Generator ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::Generator ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::Generator ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::DimVector ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/TensorIterator.h(766): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::DimVector ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::DimVector ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::DimVector ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::DimVector ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::string ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type_base.h(443): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::string ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::string ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::string ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::string ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::QualifiedName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type_base.h(691): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::QualifiedName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::QualifiedName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::QualifiedName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::QualifiedName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/ivalue.h(1241): note: see reference to class template instantiation 'c10::optional<std::shared_ptr>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::weak_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/ivalue.h(1242): note: see reference to class template instantiation 'c10::optional<std::weak_ptr>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::weak_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::weak_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::weak_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::weak_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<c10::ShapeSymbol,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(460): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ShapeSymbol,std::allocator>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<c10::ShapeSymbol,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<c10::ShapeSymbol,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<c10::ShapeSymbol,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<c10::ShapeSymbol,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(800): note: see reference to class template instantiation 'c10::VaryingShape' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(545): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional,std::allocator<c10::optional>>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(591): note: see reference to class template instantiation 'c10::VaryingShape' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(545): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional,std::allocator<c10::optional>>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<c10::optional,std::allocator<c10::optional>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<int64_t,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/jit_type.h(704): note: see reference to class template instantiation 'c10::optional<std::vector<int64_t,std::allocator>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<int64_t,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<int64_t,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<int64_t,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<int64_t,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::impl::InlineStreamGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/StreamGuard.h(139): note: see reference to class template instantiation 'c10::impl::InlineOptionalStreamGuard' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(197): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineStreamGuard>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::impl::InlineStreamGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::impl::InlineStreamGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::impl::InlineStreamGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::impl::InlineStreamGuard ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/StreamGuard.h(162): note: see reference to class template instantiation 'c10::impl::InlineMultiStreamGuard' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(232): note: see reference to class template instantiation 'c10::optional' being compiled with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::impl::VirtualGuardImpl ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(834): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ivalue::Future::WeakStorage,std::allocator>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::autograd::ViewInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(525): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::autograd::ViewInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::autograd::ViewInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::autograd::ViewInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::autograd::ViewInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::IValue ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/function_schema.h(162): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::IValue ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::IValue ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::IValue ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::IValue ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::AliasInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/function_schema.h(26): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::AliasInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::AliasInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::AliasInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::AliasInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::either<c10::OperatorName,c10::FunctionSchema> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/op_registration/op_registration.h(434): note: see reference to class template instantiation 'c10::optional<c10::either<c10::OperatorName,c10::FunctionSchema>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::either<c10::OperatorName,c10::FunctionSchema> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::either<c10::OperatorName,c10::FunctionSchema> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::either<c10::OperatorName,c10::FunctionSchema> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::either<c10::OperatorName,c10::FunctionSchema> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::impl::AnnotatedSchema ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(212): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::impl::AnnotatedSchema ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::impl::AnnotatedSchema ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::impl::AnnotatedSchema ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::impl::AnnotatedSchema ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::impl::OperatorEntry::CppSignatureWithDebug ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(271): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::impl::OperatorEntry::CppSignatureWithDebug ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::impl::OperatorEntry::CppSignatureWithDebug ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::impl::OperatorEntry::CppSignatureWithDebug ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::impl::OperatorEntry::CppSignatureWithDebug ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::OperatorName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/record_function.h(327): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=c10::OperatorName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::OperatorName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::OperatorName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::OperatorName ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::RecordFunction::State ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\ATen/record_function.h(356): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::RecordFunction::State ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::RecordFunction::State ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::RecordFunction::State ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::RecordFunction::State ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::tuple<std::string,size_t,size_t> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(201): note: see reference to class template instantiation 'c10::optional<std::tuple<std::string,size_t,size_t>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::tuple<std::string,size_t,size_t> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::tuple<std::string,size_t,size_t> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::tuple<std::string,size_t,size_t> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::tuple<std::string,size_t,size_t> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::SourceRange ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(224): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::SourceRange ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::SourceRange ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::SourceRange ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::SourceRange ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::InlinedCallStackPtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(127): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::InlinedCallStackPtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::InlinedCallStackPtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::InlinedCallStackPtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::InlinedCallStackPtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::ModuleInstanceInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(140): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::ModuleInstanceInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::ModuleInstanceInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::ModuleInstanceInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::ModuleInstanceInfo ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::ScopePtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/ir/constants.h(29): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::ScopePtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::ScopePtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::ScopePtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::ScopePtr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::ThreadLocalState ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/runtime/interpreter.h(149): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=at::ThreadLocalState ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::ThreadLocalState ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::ThreadLocalState ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::ThreadLocalState ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/api/function_impl.h(135): note: see reference to class template instantiation 'std::array<c10::optional<std::shared_ptr>,4>' being compiled C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\array(572): note: see reference to class template instantiation 'c10::optional<std::shared_ptr>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::shared_ptr ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::GraphExecutor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/api/function_impl.h(149): note: see reference to class template instantiation 'std::array<c10::optional,4>' being compiled C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\array(572): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::GraphExecutor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::GraphExecutor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::GraphExecutor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::GraphExecutor ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::jit::Method ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/api/object.h(46): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::jit::Method ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::jit::Method ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::jit::Method ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::jit::Method ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<std::string,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/jit/api/module.h(295): note: see reference to class template instantiation 'c10::optional<std::vector<std::string,std::allocator>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<std::string,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<std::string,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<std::string,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<std::string,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::function<void (const torch::autograd::profiler::thread_event_lists &)> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_legacy.h(400): note: see reference to class template instantiation 'c10::optional<std::function<void (const torch::autograd::profiler::thread_event_lists &)>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::function<void (const torch::autograd::profiler::thread_event_lists &)> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::function<void (const torch::autograd::profiler::thread_event_lists &)> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::function<void (const torch::autograd::profiler::thread_event_lists &)> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::function<void (const torch::autograd::profiler::thread_event_lists &)> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_kineto.h(247): note: see reference to class template instantiation 'c10::optional<std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<std::vector<int64_t,std::allocator>,std::allocator<std::vector<int64_t,std::allocator>>> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/loss.h(404): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<double,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/upsampling.h(26): note: see reference to class template instantiation 'c10::optional<std::vector<T,std::allocator>>' being compiled with [ T=double ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<double,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<double,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<double,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<double,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::tuple<at::Tensor,at::Tensor> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(155): note: see reference to class template instantiation 'c10::optional<std::tuple<at::Tensor,at::Tensor>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::tuple<at::Tensor,at::Tensor> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::tuple<at::Tensor,at::Tensor> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::tuple<at::Tensor,at::Tensor> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::tuple<at::Tensor,at::Tensor> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::vector<at::Tensor,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(198): note: the template instantiation context (the oldest one first) is C:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(46): note: see reference to class template instantiation 'c10::optional<std::vector<at::Tensor,std::allocator>>' being compiled C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled with [ T=std::vector<at::Tensor,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(528): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::vector<at::Tensor,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(397): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::vector<at::Tensor,std::allocator> ] C:\ProgramData\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::vector<at::Tensor,std::allocator> ] C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(58): warning C4305: 'initializing': truncation from 'double' to 'scalar_t' with [ scalar_t=scalar_t ] C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(58): note: the template instantiation context (the oldest one first) is C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(333): note: see reference to function template instantiation 'void isotonic_l2_backward_kernel(at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,int,int)' being compiled C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(232): note: see reference to function template instantiation 'std::vector<T,std::allocator> partition(at::TensorAccessor<float,1,PtrTraits,index_t>,int)' being compiled with [ T=int, PtrTraits=at::DefaultPtrTraits, index_t=int64_t ] C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(58): warning C4305: 'argument': truncation from 'double' to 'float' C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(58): note: the template instantiation context (the oldest one first) is C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(333): note: see reference to function template instantiation 'void isotonic_l2_backward_kernel(at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,at::TensorAccessor<scalar_t,2,at::DefaultPtrTraits,int64_t>,int,int)' being compiled C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cpu.cpp(232): note: see reference to function template instantiation 'std::vector<T,std::allocator> partition(at::TensorAccessor<c10::Half,1,PtrTraits,index_t>,int)' being compiled with [ T=int, PtrTraits=at::DefaultPtrTraits, index_t=int64_t ] "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\ProgramData\anaconda3\lib\site-packages\torch\lib /LIBPATH:C:\ProgramData\anaconda3\libs /LIBPATH:C:\ProgramData\anaconda3 /LIBPATH:C:\ProgramData\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib /EXPORT:PyInit_isotonic_cpu C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cpu.obj /OUT:build\lib.win-amd64-cpython-310\torchsort\isotonic_cpu.cp310-win_amd64.pyd /IMPLIB:C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort\isotonic_cpu.cp310-win_amd64.lib Creating library C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort\isotonic_cpu.cp310-win_amd64.lib and object C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort\isotonic_cpu.cp310-win_amd64.exp Generating code Finished generating code building 'torchsort.isotonic_cuda' extension Emitting ninja build file C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cuda.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\ProgramData\anaconda3\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include" -IC:\ProgramData\anaconda3\include -IC:\ProgramData\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" -c C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cuda.cu -o C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cuda.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 FAILED: C:/Users/Administrator.DUCS-GPU/AppData/Local/Temp/1/pip-install-z85xcx4u/torchsort_8761a55886df4177938aa1b92148d83e/build/temp.win-amd64-cpython-310/Release/torchsort/isotonic_cuda.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cuda.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\ProgramData\anaconda3\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include" -IC:\ProgramData\anaconda3\include -IC:\ProgramData\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" -c C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\torchsort\isotonic_cuda.cu -o C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\build\temp.win-amd64-cpython-310\Release\torchsort/isotonic_cuda.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include\crt/host_config.h(160): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. isotonic_cuda.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1740, in _run_ninja_build subprocess.run( File "C:\ProgramData\anaconda3\lib\subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, 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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\Administrator.DUCS-GPU\AppData\Local\Temp\1\pip-install-z85xcx4u\torchsort_8761a55886df4177938aa1b92148d83e\setup.py", line 52, in <module>
      setup(
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 325, in run
      self.run_command("build")
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
      self.run_command(cmd_name)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
      self.build_extensions()
    File "C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 741, in build_extensions
      build_ext.build_extensions(self)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 468, in build_extensions
      self._build_extensions_serial()
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 494, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
      _build_ext.build_extension(self, ext)
    File "C:\ProgramData\anaconda3\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 549, in build_extension
      objects = self.compiler.compile(
    File "C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 714, in win_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "C:\ProgramData\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1756, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchsort Running setup.py clean for torchsort Failed to build torchsort ERROR: Could not build wheels for torchsort, which is required to install pyproject.toml-based projects`

mvsajay commented 6 months ago

@teddykoker Can you tell me how to use torchsort , so that I will get the jacobian ( proposition 4 in this paper https://arxiv.org/abs/2002.08871) i.e.

Either diff of s(theta) wrt theta or Diff of r(theta) wrt theta

Thanks in advance.

teddykoker commented 6 months ago

@Harsh-Yadav-02 Please see the error message in the stack trace error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported!.

Yuhan0524 commented 5 months ago

Hello teddy and thanks for your effort for this package!

I also faced some problems when installing torchsort via pip install torchsort with the error message below:

pip install torchsort Defaulting to user installation because normal site-packages is not writeable Collecting torchsort Using cached torchsort-0.1.9.tar.gz (12 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: torch in /home/phantom/.local/lib/python3.8/site-packages (from torchsort) (1.9.0+cu102) Requirement already satisfied: typing-extensions in /home/phantom/.local/lib/python3.8/site-packages (from torch->torchsort) (4.5.0) Building wheels for collected packages: torchsort Building wheel for torchsort (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [103 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/torchsort copying torchsort/init.py -> build/lib.linux-x86_64-cpython-38/torchsort copying torchsort/ops.py -> build/lib.linux-x86_64-cpython-38/torchsort running egg_info writing torchsort.egg-info/PKG-INFO writing dependency_links to torchsort.egg-info/dependency_links.txt writing requirements to torchsort.egg-info/requires.txt writing top-level names to torchsort.egg-info/top_level.txt reading manifest file 'torchsort.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'torchsort.egg-info/SOURCES.txt' copying torchsort/isotonic_cpu.cpp -> build/lib.linux-x86_64-cpython-38/torchsort copying torchsort/isotonic_cuda.cu -> build/lib.linux-x86_64-cpython-38/torchsort running build_ext building 'torchsort.isotonic_cpu' extension creating /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38 creating /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort Emitting ninja build file /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] c++ -MMD -MF /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cpu.cpp -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o -fopenmp -ffast-math -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o -L/home/phantom/.local/lib/python3.8/site-packages/torch/lib -L/usr/lib/x86_64-linux-gnu -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-38/torchsort/isotonic_cpu.cpython-38-x86_64-linux-gnu.so building 'torchsort.isotonic_cuda' extension Emitting ninja build file /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] /usr/local/cuda-10.2/bin/nvcc -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cuda.cu -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14 FAILED: /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.o /usr/local/cuda-10.2/bin/nvcc -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cuda.cu -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14 In file included from /usr/local/cuda-10.2/include/cuda_runtime.h:83, from : /usr/local/cuda-10.2/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported! 138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported! | ^~~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build subprocess.run( File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, 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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/setup.py", line 52, in <module>
      setup(
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 204, in run
      self.run_command('build')
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
      _build_ext.run(self)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
      build_ext.build_extensions(self)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
      objects = self.compiler.compile(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 530, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1355, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchsort Running setup.py clean for torchsort Failed to build torchsort Installing collected packages: torchsort Running setup.py install for torchsort ... error error: subprocess-exited-with-error

× Running setup.py install for torchsort did not run successfully. │ exit code: 1 ╰─> [118 lines of output] running install /home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

          ********************************************************************************
          Please avoid running ``setup.py`` directly.
          Instead, use pypa/build, pypa/installer or other
          standards-based tools.

          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ********************************************************************************

  !!
    self.initialize_options()
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-38
  creating build/lib.linux-x86_64-cpython-38/torchsort
  copying torchsort/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsort
  copying torchsort/ops.py -> build/lib.linux-x86_64-cpython-38/torchsort
  running egg_info
  writing torchsort.egg-info/PKG-INFO
  writing dependency_links to torchsort.egg-info/dependency_links.txt
  writing requirements to torchsort.egg-info/requires.txt
  writing top-level names to torchsort.egg-info/top_level.txt
  reading manifest file 'torchsort.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'torchsort.egg-info/SOURCES.txt'
  copying torchsort/isotonic_cpu.cpp -> build/lib.linux-x86_64-cpython-38/torchsort
  copying torchsort/isotonic_cuda.cu -> build/lib.linux-x86_64-cpython-38/torchsort
  running build_ext
  building 'torchsort.isotonic_cpu' extension
  creating /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38
  creating /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort
  Emitting ninja build file /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/build.ninja...
  Compiling objects...
  Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
  [1/1] c++ -MMD -MF /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cpu.cpp -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o -fopenmp -ffast-math -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cpu.o -L/home/phantom/.local/lib/python3.8/site-packages/torch/lib -L/usr/lib/x86_64-linux-gnu -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-38/torchsort/isotonic_cpu.cpython-38-x86_64-linux-gnu.so
  building 'torchsort.isotonic_cuda' extension
  Emitting ninja build file /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/build.ninja...
  Compiling objects...
  Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
  [1/1] /usr/local/cuda-10.2/bin/nvcc  -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cuda.cu -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.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'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14
  FAILED: /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.o
  /usr/local/cuda-10.2/bin/nvcc  -I/home/phantom/.local/lib/python3.8/site-packages/torch/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/TH -I/home/phantom/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/usr/include/python3.8 -c -c /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/torchsort/isotonic_cuda.cu -o /tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/build/temp.linux-x86_64-cpython-38/torchsort/isotonic_cuda.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'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=isotonic_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14
  In file included from /usr/local/cuda-10.2/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.2/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
      subprocess.run(
    File "/usr/lib/python3.8/subprocess.py", line 516, in run
      raise CalledProcessError(retcode, process.args,
  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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-q6sfdkad/torchsort_c07884eb5e884d3abf366a512fa999d5/setup.py", line 52, in <module>
      setup(
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/command/install.py", line 78, in run
      return orig.install.run(self)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/install.py", line 697, in run
      self.run_command('build')
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
      _build_ext.run(self)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
      build_ext.build_extensions(self)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/phantom/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
      objects = self.compiler.compile(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 530, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1355, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/phantom/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> torchsort

teddykoker commented 5 months ago

@Yuhan0524 please see the text in your error message: error -- unsupported GNU version! gcc versions later than 8 are not supported! This should be fixed by downgrading your GCC.