We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mycode -setup.py -a_cuda_kernel.cu -a_cuda.cpp
I need to open rdc mode,so from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup( name='a_cuda', ext_modules=[ CUDAExtension('a_cuda', [ 'a_cuda.cpp', 'a_cuda_kernel.cu', ],extra_compile_args={'nvcc':['-rdc','true']}), ], cmdclass={ 'build_ext': BuildExtension })
or setup( name='att_cuda', ext_modules=[ CUDAExtension('a_cuda', [ 'a_cuda.cpp', 'a_cuda_kernel.cu', ],dlink=True,extra_compile_args={'nvcc':['-rdc','true']}), ], cmdclass={ 'build_ext': BuildExtension })
error LNK2001 undefined reference to `__cudaRegisterLinkedBinary occured it seems to break when program execute link.exe thank you verymuch
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mycode
-setup.py
-a_cuda_kernel.cu
-a_cuda.cpp
I need to open rdc mode,so
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='a_cuda',
ext_modules=[
CUDAExtension('a_cuda', [
'a_cuda.cpp',
'a_cuda_kernel.cu',
],extra_compile_args={'nvcc':['-rdc','true']}),
],
cmdclass={
'build_ext': BuildExtension
})
or
setup(
name='att_cuda',
ext_modules=[
CUDAExtension('a_cuda', [
'a_cuda.cpp',
'a_cuda_kernel.cu',
],dlink=True,extra_compile_args={'nvcc':['-rdc','true']}),
],
cmdclass={
'build_ext': BuildExtension
})
error LNK2001 undefined reference to `__cudaRegisterLinkedBinary occured
it seems to break when program execute
link.exe
thank you verymuch
The text was updated successfully, but these errors were encountered: