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

Difficulty compiling on NVidia tegra #7

Open
sjwaldman opened this issue Jul 3, 2019 · 6 comments
Open

Difficulty compiling on NVidia tegra #7

sjwaldman opened this issue Jul 3, 2019 · 6 comments
Assignees

Comments

@sjwaldman
Copy link

Goodmorning OPI Team -

I am hoping to use OPI for some basic work -- I have a generic interest in GPU based computation, as well as a specific interest in orbital propagation and radiation tolerant computing. OPI seems like a very promising framework, but I am unable to get the code compiled. Any help would be greatly appreciated, as I suspect I am doing something basic incorrectly.

System:
NVidia TX1 running tegra-ubuntu aarch64
CUDA release 9.0
cmake version 3.5.1
g++ (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609


After mkdir build; cd build; cmake .. I receive the following error:

CMake Error at CMakeLists.txt:56 (if):
if given arguments:

"3.5.1" "VERSION_GREATER_EQUAL" "3.12"

Unknown arguments specified

This is fixed by replacing with "NOT ${CMAKE_VERSION} VERSION_LESS "3.12 " based on the insight gleaned here: [https://github.com/Dav1dde/glad/issues/134]. This modification allows cmake to finish.

Make proceeds to the 64% level and crashes out when building propagator_properties_cpp.cpp with an error about "virtual functions are pure". This is something I tried to "fix" by changing the function definition so the virtual function is properly overridden, but this seems indicative of a compiler configuration error. As far as I can tell, the compiler is running with C++11 enabled based on CMAKE messages. However, the virtual message and later messages regarding "nullptr" definition suggest that a compiler configuration is wrong still.

Any help greatly appreciated.

Thanks!

sam

@mmoeckel
Copy link
Collaborator

mmoeckel commented Jul 3, 2019

Hi Sam,
can you tell me which functions are throwing the "virtual functions are pure" error? Also, what version of the code did you check out?
I have made some recent additions that require C++11 so the option to disable C++11 is obsolete now.

@mmoeckel mmoeckel self-assigned this Jul 3, 2019
@mmoeckel
Copy link
Collaborator

mmoeckel commented Jul 4, 2019

The minor CMake issues you saw should be fixed with cb486dc 5b2097e and 794a8f1.

@sjwaldman
Copy link
Author

sjwaldman commented Jul 4, 2019 via email

@sjwaldman
Copy link
Author

sjwaldman commented Jul 8, 2019 via email

@mmoeckel
Copy link
Collaborator

mmoeckel commented Jul 8, 2019

Hi Sam, thanks for reporting back!
The package you need to install on Ubuntu for the python3 bindings is libpython3-dev. You can also choose to build against python2 if you prefer.

Re SWIG, the command swig_add_library was added to replace an older command. If you dig around in CMakeLists.txt's history (1f7cc4b#diff-af3b638bc2a3e6c650974192a53c7291) you'll find it. Maybe it should be added back in as an option for older versions of CMake.

@mmoeckel
Copy link
Collaborator

mmoeckel commented Jul 9, 2019

Re SWIG, the command swig_add_library was added to replace an older command. If you dig around in CMakeLists.txt's history (1f7cc4b#diff-af3b638bc2a3e6c650974192a53c7291) you'll find it. Maybe it should be added back in as an option for older versions of CMake.

Fixed in 0802510.

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