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
Compilation Error Ubuntu 18.04 and CUDA 10.1 #59
Comments
Hi, I started to debug compilation with CUDA 10.1 but stopped. CUDA 10.0 works, as does CUDA 9.1 installed from the Ubuntu 18.04 repository. I've tested CUDA 10.0 with Ubuntu 16.04 and Ubuntu repository installed CUDA 9.1 with Ubuntu 18.04. Hope this helps |
Thanks I will try with other versions then. I was thinking CUDA 10.1 will work since RCFD works with CUDA10. I'll let you know. |
By the way, for you or anyone else reading this thread in the future, debugging CUDA 10.1 and RapidCFD, the error you point out in file : line 383: Old:
Change to:
I did not fix other errors with CUDA 10.1 compilation... unfortunately |
Thanks for the info, I'm gonna correct this file. |
here an update, So I uninstalled CUDA 10.1 and installed CUDA 10 from the local runfile provided by nvidia website. However I'm still facing Error2 while compiling with CUDA10. It looks like the compiler cannot find any references for some libraries. I checked the nvcc version, its on 10.0. Is that error can come from the Nvidia Driver? I'm running on version 430. Thanks for your time. |
Hello, Thanks for the update. Please make sure that you completely clean the RapidCFD installation before you compile. e.g.,
While you're at it see #39 and #54 --- to fix the thrust device error at the end of executing a solver:
To be clear, you'll want to edit I personally found that I had to use the correct sm_# (compute capability) for my particular GPU in hope all this helps! Good luck with the recompile. |
I will try it and let you know, |
Oh and one more comment... you'll want to edit the wmake rules, too, before you recompile. Hope this works out for you. |
I already edited the wmake rules before I compiled for the first time to change the arch from sm_35 to sm_61 to better fit my GPU. In my installation, the malloc_and_free.h was located in I'm gonna clean RCFD installation and compile it again and let you know. Thanks again. |
I can't wait to hear what happens! Hope you have a good result. |
After recompiling, it seems to change anything. I still have errors like this following while compiling application solver :
I'm sorry to have so many difficulties to compile with a configuration that normally work. |
A reboot is a good idea. Maybe this will fix the problem, maybe not. But I really recommend you reboot before continuing to troubleshoot. As I understand your error message, libmeshTools.so didn't compile, which is why this library could not be found. To track this down you can try:
Since you don't have the libmeshTools.so library, this build will probably fail. You'll want to note why the compilation of libmeshTools.so failed. However, if the compilation of libmeshTools.so fails after reboot maybe you'll probably want to Other small things that may solve the compilation errors if they persist.
I never looked back after I got RapidCFD to compile with CUDA 10 to figure out which of these additions to the rules files Be aware that if you change As I mentioned, I use CUDA 10 with Ubuntu 16.04. On my Ubuntu 18.04 system, I installed CUDA from the Ubuntu repository (CUDA 9.1). That is, I think I basically used Good luck! |
Hello Eric, here an update of what I did this morning. After rebooting and verify all the PATH and the rules files I completely cleaned up the RapidCFD install and tried to recompile again but I got same error using CUDA 10.0. Then I tried to compile the libmeshTools but I got the following error :
After that, I downgraded my CUDA version to 9.1 (cleaned the 10.0 install, reboot, installed the 9.1 from the repository and rebooted again), cleaned up the RapidCFD install and compiled again. I got the exact same error I got with CUDA 10.0 and CUDA 10.1. Also I got a lot of warnings during the compilation like :
Is that something I have to worried about? The only thing I didn't tried is to compile with driver 418 on CUDA 10.0 and 9.1, but I don't really thing is gonna change something since I used driver 418 on CUDA 10.1 and got the exact same error. Is there any possibility that my CUDA install is not completely cleaned up and some files from CUDA 10.1 or CUDA 10 are still there and enter in conflict with other CUDA installation? Thanks for your help Eric. |
Hello, I apologize but I cannot reproduce your error. Here is some information about my system
All of my NVidia and CUDA software is from the Ubuntu or system76 (my vendor for my computer) repository - nothing "customized" or downloaded from NVidia directly. I started with a clean version of the repository commit f3775ac, although so as to not mess with my working version of RapidCFD, I edited Since my GPU is compute capability 3.5, I did not change With So to your specific questions:
It sounds like you are using a Pascal type GPU, given your note above about SM_61. I do not know if there are complications from using SM_61 that will affect your compilation of RapidCFD. I have an Ubuntu 16.04 system that has both a K20 and a Ti1050GX card. To get RapidCFD to compile and run properly on both GPU's installed in this system, I edited the c++ rules in the
I am really stretching here... I don't quite have the same configuration as you, but I have compiled RapidCFD on Ubuntu 18.04 with SM_35 + CUDA 9.1, and on Ubuntu 16.04 with SM_35 + SM_61 and CUDA 8.0. The final parting advice I have for you at this moment is to always be sure that you reboot after making driver changes, and fully clean out your RapidCFD install + recompile. If in doubt, you can delete completely RapidCFD and reinstall fresh with I really wish you well... there must be some way to get this compiled for your system.... |
Dear Eric, I tried to restart from a clean sheet. I cleanup my Ubuntu 18.04 installation, download a clean folder of RapidCFD and installed CUDA 9.1 from repository :
Also, to match your configuration, I installed driver 418 and set arch=sm_35 in c and c++ file (modified as you suggested) instead of arch=sm_61 which is the compute capability of my 1070GTX. I rebooted twice after installing CUDA and the driver. Since I did a fresh install of Ubuntu 18.04, I also had to install However compilation failed again and the error is still here. https://stackoverflow.com/questions/17251316/nvcc-unable-to-compile According to CUDA documentation, I should have a specific version of gcc and Ubuntu Kernel. I have Kernel version 4.18 and gcc 7.3.0 on my installation. I'm sorry to point out such difficulties. |
Hello, For my Ubuntu 18.04 setup, I am also using kernel 4.18 and gcc 7.3.0.
I am unsure what differences remain between your Ubuntu 18.04 and my Ubuntu 18.04 system. Same kernel; same CUDA version; same gcc. Same RapidCFD distribution. Ok, now I am grasping for ideas.
On my machine, line 433 of cellClassification.dep says:
I am really starting to run out of ideas for you to try.... and just to be absolutely sure...you're compiling RapidCFD as root in /opt, and you are starting with a fresh clone of the repository? Sorry for such basic questions... I cannot understand why your copy of RapidCFD does not compile... |
So it's definitely not kernel and gcc version. I checked for cellClassification.dep on line 433 and I got the same as you mentioned. Usually I'm following this flowchart when I want to compile RapidCFD However since I started from a clean sheet I tried to compile from For now I'm pretty sure problem is related to my installation flowchart since I got the same configuration as yours. I'm gonna review that tomorrow I getting tired right now. |
While I am not sure why this is a problem, the main item that appears most different in our setups is your flow chart item number 3:
I point this out since the compilation error showing "recipe for target" might mean something is not found? I am not sure. So... Yes... I agree that the problem is most likely related to your installation flow chart...and within this flowchart... I am most suspicious of your step 3, the editing of the On my machine:
Hopefully you are on a path to find the root of the compilation issue. From this dialogue I hope you have eliminated a lot of possible explanations, narrowing down the list of possibilities... Cheers |
Dear Eric, Looking at compilation logs, I found this kind of warnings when the the programs tries to compile files related to surfZone, MeshedSurfaceAllocator, surfaceFormat, surfMesh (and others) :
The warning contains It looks like every the warnings are always pointing an if(), is this maybe something we should look at? Regards. |
Hello, I have these same warnings, and they do not seem to impact operation of the solvers. I am not certain how the nvcc compiler works, but I think there are a bunch of temporary files that are placed in /tmp (for example, watch the files in /tmp while you cmpile.. all kinds of tmp files come and go during the compilation process). I am never in a position to state that a complex code like this is bug free, but these warnings are not preventing the compilation of working solvers and associated libraries on my Ubuntu 18.04 system. I apologize, but I do not have a firm reason for your compilation problem. |
Hello, I am still fixated on your need to change Is this cfd-online post or this other cfd-online post related to the errors you see when sourcing the The edits you made to bashrc are the most significant difference I can identify between my setup and your setup... Good luck! |
I managed to compile RapidCFD with CUDA 10.1 using the following procedure.
/usr/local/cuda/include/thrust/system/cuda/memory_resource.h
|
Dear Eric, I'm so sorry for responding so late but I didn't have time this past month to focus on RCFD. However, I finally succeed to compile RCFD couple days ago following your instructions and it's working pretty well on Ubuntu 18.04 a,d CUDA 10.1. I'm now sure problem came from a conflict in my CUDA installation. I think I did not purge all the files between two installation of different CUDA version. Thank you very much for your time and for manage this problem. Regards. |
Hello, First of all, sorry for my bad english. :( In the step 1, i have to install this https://github.com/Atizar/RapidCFD-dev?. I am usign ubuntu 18.04 and i want to improve the speed of my simulation in OF Thanks in advance for your help |
Hello, Yes, you will need to compile I hope the installation goes well. Best regards, Eric |
Hello everyone,
I'm facing a compilation issue with RapidCFD on Ubuntu 18.04 using CUDA10.1 maybe someone can help me.
Some files are compiling well, others with warnings and some are not compiling at all due to errors with an "unsigned int" class (see attached file Error1).
Also the applications libraries are not compiling at all due to lot of "undefined reference class" (see attach file Error2, sorry for the french error lines).
Looks like a little bit tricky to me, maybe should I using an other version of CUDA? Problem is on Nvidia Website only CUDA10 and CUDA10.1 are referenced for Ubuntu 18.04.
Thanks for your help.
Files:
Error1.txt
Error2.txt
The text was updated successfully, but these errors were encountered: