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

Issue compiling #3

Open
stormyweathers opened this issue Sep 8, 2021 · 1 comment
Open

Issue compiling #3

stormyweathers opened this issue Sep 8, 2021 · 1 comment

Comments

@stormyweathers
Copy link

Hey there,

I tried compiling this repo through your Turing Pattern repo. I ran
> cmake .
> make
And get:

[ 28%] Building CXX object CudaLight/CMakeFiles/HostRoutines.dir/HostRoutines/BufferInitializer.cpp.o
In file included from /home/user/repos/TuringPatterns/PdeFiniteDifferenceSolver/CudaLight/HostRoutines/BufferInitializer.cpp:3:0:
/home/user/repos/TuringPatterns/PdeFiniteDifferenceSolver/CudaLight/HostRoutines/Exceptions.h:13:22: error: ‘virtual const char* cl::NotImplementedException::what() const’ can be marked override [-Werror=suggest-override]
inline const char* what() const noexcept final { return "NotImplemented"; }
^~~~
/home/user/repos/TuringPatterns/PdeFiniteDifferenceSolver/CudaLight/HostRoutines/Exceptions.h:26:22: error: ‘virtual const char* cl::MklException::what() const’ can be marked override [-Werror=suggest-override]
inline const char* what() const noexcept final { return _callerFunction; }
^~~~
/home/user/repos/TuringPatterns/PdeFiniteDifferenceSolver/CudaLight/HostRoutines/Exceptions.h:42:22: error: ‘virtual const char* cl::OpenBlasException::what() const’ can be marked override [-Werror=suggest-override]
inline const char* what() const noexcept final { return _callerFunction; }
^~~~
cc1plus: all warnings being treated as errors
CudaLight/CMakeFiles/HostRoutines.dir/build.make:75: recipe for target 'CudaLight/CMakeFiles/HostRoutines.dir/HostRoutines/BufferInitializer.cpp.o' failed
make[2]: *** [CudaLight/CMakeFiles/HostRoutines.dir/HostRoutines/BufferInitializer.cpp.o] Error 1
CMakeFiles/Makefile2:1421: recipe for target 'CudaLight/CMakeFiles/HostRoutines.dir/all' failed
make[1]: *** [CudaLight/CMakeFiles/HostRoutines.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

I think this problem could be solved by including the compiler flag "-Werror=suggest-override" but I don't know how to implement this change, nor do I understand the issue.

Can you advise?

thanks!

@pmontalb
Copy link
Owner

pmontalb commented Sep 9, 2021

It looks like I missed the override keyword I'm those methods. When I have time I'll try to compile it and see if there's any other issue

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

2 participants