-
Notifications
You must be signed in to change notification settings - Fork 95
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
RapidCFD errors with CUDA 11.2, 11.3, 11.4 and 11.5 #92
Comments
TonkomoLLC
changed the title
RapidCFD errors with CUDA 11.2, 11.3 and 11.4
RapidCFD errors with CUDA 11.2, 11.3, 11.4 and 11.5
Jan 27, 2022
Closed
simple fix for dynamicMesh :
Moreover I also have had to add this change to whos preconised by @TonkomoLLC :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
In case anyone else tries to compile RapidCFD with one of the more recent (as of Sept 2021) verisons of CUDA.... On my machine (stock Ubuntu 20.04 - meaning gcc 9.3.0 and any other default toolchain items),
CUDA 11.1 works perfectly
CUDA 11.2 works normally when no function objects are utilized. However, using the functionObject "libForces.so" gives a "parallel_for" issue first described in looping over mesh cells within a solvers #87:
Presently I do not know the reason why this function broke between CUDA 11.1 and 11.2. There are no compilation errors with CUDA 11.2, including no compilation errors for libforces.so.
For avoidance of doubt, the libForces functionObject is the only item that I tested with CUDA 11.2 that gave an error. Note that my tests are not comprehensive of every feature and solver in RapidCFD, so other issues may be lurking.
CUDA 11.3 has a compilation issue with
src/meshTools
,Despite this error, interestingly, libOpenFOAM.so compiles correctly (PointHit.H is located in the src/OpenFOAM directory).
Here is a workaround.
In PointHit.H, replace line 89:
with
The code then compiles and except for the libforces issue, it seems to run OK.
CUDA 11.4 has the exact same issue as CUDA 11.3.
CUDA 11.5 gives another error when compiling the dynamic mesh library:
For now if dynamicMesh is not needed, CUDA 11.5 can be used if the compilation of the dynamic mesh library is disabled by commenting out `src/Allwmake' as follows:
It is also possible to compile the dynamicMesh library by just commenting out the for loop starting at line 104 in multiSolidBodyMotionFvMesh.C, as per the attached. Of course, the feature commented out will not work, but if not needed for your application, RapidCFD will compile.
multiSolidBodyMotionFvMesh.txt
My apologies for not proposing code fixes, but I thought I would at least report my findings in case anyone else tries to compile RapidCFD with CUDA >= 11.2.
Best regards,
Eric
The text was updated successfully, but these errors were encountered: