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

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...

How to show number of registered users in Laravel based on usertype?

i'm trying to display data from the database in the admin dashboard i used this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count(); echo $users; ?> and i have successfully get the correct data from the database but what if i want to display a specific data for example in this user table there is "usertype" that specify if the user is normal user or admin i want to user the same code above but to display a specific usertype i tried this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count()->WHERE usertype =admin; echo $users; ?> but it didn't work, what am i doing wrong? source https://stackoverflow.com/questions/68199726/how-to-show-number-of-registered-users-in-laravel-based-on-usertype

The number of nodes and edges I calculated manually and by a method provided by networkx library dont match

I am trying to analyse a graph using networkx library in Python. I have implemented a function that returns the nodes and edges of that graph. After that I counted the number of nodes and edges by implementing the len() function for nodes and edges, which gave me 17 for both nodes and edges. However, when I used the method graph.number_of_nodes() of networkx library it gave me 53. My code: import pandas as pd import networkx as nx import matplotlib.pyplot as plt header_list = ["a","b","w"] E =pd.read_csv("aves-barn-swallow-contact-network.edges",sep=" ",header= None,names=header_list) # print(E.head()) # prints first few rows of the csv file G = nx.from_pandas_edgelist(E,"a","b",["w"]) nx.draw(G) plt.show() class GraphAnalyse: #finding nodes and edges def nodeEdge(self,Graph): nodes = Graph.nodes() edges = Graph.edges() ...