8000 compilation error · Issue #1 · vortexmethods/VM2D · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

compilation error #1

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

Open
KunalTon opened this issue Jan 7, 2021 · 9 comments
Open

compilation error #1

KunalTon opened this issue Jan 7, 2021 · 9 comments

Comments

@KunalTon
Copy link
KunalTon commented Jan 7, 2021

When I try to complile the code, I get the following error:

[ 2%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/PairInt/PairInt.cpp.o
[ 5%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/Parallel/Parallel.cpp.o
[ 7%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/PassportGen/PassportGen.cpp.o
In file included from /home/194040001/a/VM2DM/src/VMlib/StreamParser/StreamParser.h:48:0,
from /home/194040001/a/VM2DM/src/VMlib/PassportGen/PassportGen.cpp:40:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h: In member function ‘T* VM2D::MyAlloc::allocate(VM2D::MyAlloc::size_type, const void*)’:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:326:41: error: there are no arguments to ‘cuAlloc’ that depend on a template parameter, so a declaration of ‘cuAlloc’ must be available [-fpermissive]
cuAlloc((void**)&ret, num * sizeof(T));
^
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:326:41: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h: In member function ‘void VM2D::MyAlloc::deallocate(VM2D::MyAlloc::pointer, VM2D::MyAlloc::size_type)’:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:353:21: error: there are no arguments to ‘cuDalloc’ that depend on a template parameter, so a declaration of ‘cuDalloc’ must be available [-fpermissive]
cuDalloc((void*)p);
^
make[2]: *** [src/VMlib/CMakeFiles/VMlib2.dir/PassportGen/PassportGen.cpp.o] Error 1
make[1]: *** [src/VMlib/CMakeFiles/VMlib2.dir/all] Error 2
make: *** [all] Error 2

@vortexmethods
Copy link
Owner

I kindly ask to excuse me for the very late answer.
What compiler and what version of compiler do you use? And the same for CUDA sdk.

@KunalTon
Copy link
Author

I am using cuda-11.2
and gcc version 4.8.5 20150623 .

I have another question, I want to use VM2D for a fluid-structure interaction (FSI) problem with 2 degrees of freedom. I want vertical motion as well as rotational motion. Can VM2D be used for 2 Degree of freedom FSI problem?
image

@dingzhw
Copy link
dingzhw commented Jun 8, 2021

I have run into the same problem, if you've got a solution, please let me know, thanks a lot!

@zghydxsyk
Copy link

I also met this problem

@DonBetur
Copy link

Is there a way to compile VM2D without CUDA? Got same problem on Linux, but I don't got a NVIDIA CUDA GPU.

@vortexmethods
Copy link
Owner

Yes, sure!
I will update current code in a few days (minor bugs, that have been found) and write here how to compile without CUDA.

@KunalTon
Copy link
Author

has this issue been resolved?

@MustafaAlperenMadenci
Copy link

Same error happened to me :/ using macos

@AB1982
Copy link
AB1982 commented Oct 7, 2024

Hi, I get the same error if I compile commenting -DUSE-CUDA in CMakefile.lst, while if I try to compile by using cuda, compilation fails at bvh.cuh with the following error:
intersection/lbvh/bvh.cuh:22:10: fatal error: cuda/functional: no such file or directory
Do you have any suggestion? I am working on Debian:
-The C compiler identification is GNU 12.2.0 -The CXX compiler identification is GNU 12.2.0 -The CUDA compiler identification is NVIDIA 11.8.89

UPDATE:
I update my cuda toolkit to the latest version and the previous error has been resolved, but now I get a new error at 88% of the process in the file Wake2D.cpp:
VM2D/src/VM2D/Wake2D/Wake2D.cpp:51:10: fatal error: knnCPU-new.h: no such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
0