-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
I kindly ask to excuse me for the very late answer. |
I have run into the same problem, if you've got a solution, please let me know, thanks a lot! |
I also met this problem |
Is there a way to compile VM2D without CUDA? Got same problem on Linux, but I don't got a NVIDIA CUDA GPU. |
Yes, sure! |
has this issue been resolved? |
Same error happened to me :/ using macos |
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: UPDATE: |
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
The text was updated successfully, but these errors were encountered: