Skip to main content

ABME reimplement correlation cuda setup

I am trying to install correlation cuda but it keeps showing these errors. I am searching for answers and found that can change the version of CUDA or PyTorch but another computer with the same environment could install this setup.

In github: https://github.com/JunHeum/ABME

environment: Windows11, PyTorch 1.7, CUDA 11.0, CuDNN 8.0.5, python 3.8

 Emitting ninja build file C:\Users\User\Desktop\softsplat\correlation_package\build\temp.win-amd64-3.8\Release\build.ninja...
 Compiling objects...
 Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
 [1/2] C:\Users\User\anaconda3\envs\softsplat\bin\nvcc -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:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\TH -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\THC -IC:\Users\User\anaconda3\envs\softsplat\include -IC:\Users\User\anaconda3\envs\softsplat\include -IC:\Users\User\anaconda3\envs\softsplat\include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-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\\shared" "-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\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" -c C:\Users\User\Desktop\softsplat\correlation_package\correlation_cuda_kernel.cu -o C:\Users\User\Desktop\softsplat\correlation_package\build\temp.win-amd64-3.8\Release\correlation_cuda_kernel.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_70,code=compute_70 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=correlation_cuda -D_GLIBCXX_USE_CXX11_ABI=0
 FAILED: C:/Users/User/Desktop/softsplat/correlation_package/build/temp.win-amd64-3.8/Release/correlation_cuda_kernel.obj
 C:\Users\User\anaconda3\envs\softsplat\bin\nvcc -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:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\TH -IC:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\include\THC -IC:\Users\User\anaconda3\envs\softsplat\include -IC:\Users\User\anaconda3\envs\softsplat\include -IC:\Users\User\anaconda3\envs\softsplat\include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-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\\shared" "-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\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" -c C:\Users\User\Desktop\softsplat\correlation_package\correlation_cuda_kernel.cu -o C:\Users\User\Desktop\softsplat\correlation_package\build\temp.win-amd64-3.8\Release\correlation_cuda_kernel.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_70,code=compute_70 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=correlation_cuda -D_GLIBCXX_USE_CXX11_ABI=0
 CreateProcess failed: The system cannot find the file specified.
 ninja: fatal: ReadFile: 控制代碼無效。

 Traceback (most recent call last):
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\utils\cpp_extension.py", line 1516, in _run_ninja_build
subprocess.run(
   File "C:\Users\User\anaconda3\envs\softsplat\lib\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 "setup.py", line 19, in <module>
setup(
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\core.py", line 148, in setup
dist.run_commands()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\install.py", line 74, in run
self.do_egg_install()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\install.py", line 116, in do_egg_install
self.run_command('bdist_egg')
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\utils\cpp_extension.py", line 653, in build_extensions
build_ext.build_extensions(self)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
   File "C:\Users\User\anaconda3\envs\softsplat\lib\distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\utils\cpp_extension.py", line 626, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\utils\cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
_run_ninja_build(
   File "C:\Users\User\anaconda3\envs\softsplat\lib\site-packages\torch\utils\cpp_extension.py", line 1538, in _run_ninja_build
raise RuntimeError(message) from e
 RuntimeError: Error compiling objects for extension

How can I solve this?



source https://stackoverflow.com/questions/73303535/abme-reimplement-correlation-cuda-setup

Comments

Popular posts from this blog

Where and how is this Laravel kernel constructor called? [closed]

Where and how is this Laravel kernel constructor called? public fucntion __construct(Application $app, $Router $roouter) { } I have read the documentation and some online tutorial but I can find any clear explanation. I am learning Laravel and I am wondering where does this kernel constructor receives its arguments from. "POSTMOTERM" CLARIFICATION: Here is more clarity.I have checked the boostrap/app.php and it is only used for boostrapping the interfaces into the container class. What is not clear to me is where and how the Kernel class is instatiated and the arguments passed to the object calling the constructor.Something similar to; obj = new kernel(arg1,arg2) or, is the framework using some magic functions somewhere? Special gratitude to those who burn their eyeballs and brain cells on this trivia before it goes into a full blown menopause alias "MARKED AS DUPLICATE". To some of the itchy-finger keyboard warriors, a.k.a The mods,because I believe in th...

Why is my reports service not connecting?

I am trying to pull some data from a Postgres database using Node.js and node-postures but I can't figure out why my service isn't connecting. my routes/index.js file: const express = require('express'); const router = express.Router(); const ordersCountController = require('../controllers/ordersCountController'); const ordersController = require('../controllers/ordersController'); const weeklyReportsController = require('../controllers/weeklyReportsController'); router.get('/orders_count', ordersCountController); router.get('/orders', ordersController); router.get('/weekly_reports', weeklyReportsController); module.exports = router; My controllers/weeklyReportsController.js file: const weeklyReportsService = require('../services/weeklyReportsService'); const weeklyReportsController = async (req, res) => { try { const data = await weeklyReportsService; res.json({data}) console...

Confusion between commands.Bot and discord.Client | Which one should I use?

Whenever you look at YouTube tutorials or code from this website there is a real variation. Some developers use client = discord.Client(intents=intents) while the others use bot = commands.Bot(command_prefix="something", intents=intents) . Now I know slightly about the difference but I get errors from different places from my code when I use either of them and its confusing. Especially since there has a few changes over the years in discord.py it is hard to find the real difference. I tried sticking to discord.Client then I found that there are more features in commands.Bot . Then I found errors when using commands.Bot . An example of this is: When I try to use commands.Bot client = commands.Bot(command_prefix=">",intents=intents) async def load(): for filename in os.listdir("./Cogs"): if filename.endswith(".py"): client.load_extension(f"Cogs.{filename[:-3]}") The above doesnt giveany response from my Cogs ...