Skip to content
New issue

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

Unresolved extern function '_ZN7tensor3clEii' #27

Open
luchete80 opened this issue Oct 28, 2021 · 3 comments
Open

Unresolved extern function '_ZN7tensor3clEii' #27

luchete80 opened this issue Oct 28, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@luchete80
Copy link
Owner

ptxas fatal : Unresolved extern function '_ZN7tensor3clEii'
make[2]: *** [src/cuda/CMakeFiles/cuda.dir/build.make:102: src/cuda/CMakeFiles/cuda.dir/SubDomain.cu.o] Error 255
make[1]: *** [CMakeFiles/Makefile2:162: src/cuda/CMakeFiles/cuda.dir/all] Error 2

@luchete80 luchete80 added the bug Something isn't working label Oct 28, 2021
@luchete80
Copy link
Owner Author

This appears when tensor members operators are set a device in header

@luchete80 luchete80 changed the title Undefined reference Unresolved extern function '_ZN7tensor3clEii' #29 Feb 14, 2022
@luchete80 luchete80 changed the title Unresolved extern function '_ZN7tensor3clEii' #29 Unresolved extern function '_ZN7tensor3clEii' Feb 14, 2022
@luchete80
Copy link
Owner Author

Problem appears by linking CUDA library.
Interaction.cu has tensor3 class and has no inconvenients to be linked.
BUT Subdomain.cu seems ti be the problem

@luchete80
Copy link
Owner Author

luchete80 commented Feb 14, 2022

Problem is in passing subdomain from HOST to DEVICE.
Subdomain is defined in host

__host__ void StartAcceleration(SubDomain &sd); // This is the buffer function which calls the kernel
__global__ void StartAccelerationKernel(SubDomain &sd);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant