|
[Sponsors] |
[RapidCFD] Discussion thread on how to install and use RapidCFD |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 26, 2016, 22:30 |
Single thread running is ok, but parallel running still stuck
|
#21 | |
New Member
Pin Lyu
Join Date: Mar 2016
Location: Harbin
Posts: 6
Rep Power: 10 |
Well, I abandoned Quadro 4000 (cc2.0) and found a Tesla K10 (cc 3.0) to test.
Single thread running(gpu) is Ok, about 4x faster than single thread cpu. (Better performance than cudasolver in foam-extend 3.2) However when I compile openmpi1.8.4 in thirdpary folder and try 'mpirun -np 2 pisoFoam -parallel', error occurs: Code:
/*---------------------------------------------------------------------------*\ | RapidCFD by simFlow (sim-flow.com) | \*---------------------------------------------------------------------------*/ Build : dev-9fc614f4e816 Exec : pisoFoam -parallel Date : Jul 27 2016 Time : 08:44:37 Host : "asus-Z10PA-D8-Series" PID : 16766 Case : /home/asus/RapidCFD/asus-dev/grid_1000x1000/cavity-rcfd-2 nProcs : 2 Slaves : 1("asus-Z10PA-D8-Series.16767") Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 terminate called after throwing an instance of 'thrust::system::system_error' what(): function_attributes(): after cudaFuncGetAttributes: invalid device function [asus-Z10PA-D8-Series:16767] *** Process received signal *** [asus-Z10PA-D8-Series:16767] Signal: Aborted (6) [asus-Z10PA-D8-Series:16767] Signal code: (-6) [asus-Z10PA-D8-Series:16767] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x36cb0)[0x7ffaa3822cb0] [asus-Z10PA-D8-Series:16767] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7ffaa3822c37] [asus-Z10PA-D8-Series:16767] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7ffaa3826028] [asus-Z10PA-D8-Series:16767] [ 3] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x155)[0x7ffaa412d535] [asus-Z10PA-D8-Series:16767] [ 4] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e6d6)[0x7ffaa412b6d6] [asus-Z10PA-D8-Series:16767] [ 5] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e703)[0x7ffaa412b703] [asus-Z10PA-D8-Series:16767] [ 6] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e922)[0x7ffaa412b922] [asus-Z10PA-D8-Series:16767] [ 7] pisoFoam(_ZN6thrust6system4cuda6detail5bulk_6detail14throw_on_errorE9cudaErrorPKc+0x55)[0x452995] [asus-Z10PA-D8-Series:16767] [ 8] /home/asus/RapidCFD/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libincompressibleRASModels.so(_ZZN6thrust6system4cuda6detail10for_each_nINS2_3tagENS_10device_ptrIiEEmNS_6detail23device_generate_functorINS7_12fill_functorIiEEEEEET0_RNS2_16execution_policyIT_EESC_T1_T2_EN10workaround13parallel_pathERNSD_IS4_EES6_mSB_+0x5e)[0x7ffabd3e1a9e] [asus-Z10PA-D8-Series:16767] [ 9] /home/asus/RapidCFD/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libOpenFOAM.so(_ZN4Foam7gpuListIiEC1Ei+0x92)[0x7ffaa4e50912] [asus-Z10PA-D8-Series:16767] [10] /home/asus/RapidCFD/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8polyMeshC1ERKNS_8IOobjectE+0x426)[0x7ffaa5025a46] [asus-Z10PA-D8-Series:16767] [11] /home/asus/RapidCFD/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libfiniteVolume.so(_ZN4Foam6fvMeshC2ERKNS_8IOobjectE+0x19)[0x7ffaa9769389] [asus-Z10PA-D8-Series:16767] [12] pisoFoam[0x447d9d] [asus-Z10PA-D8-Series:16767] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7ffaa380df45] [asus-Z10PA-D8-Series:16767] [14] pisoFoam[0x449fb5] [asus-Z10PA-D8-Series:16767] *** End of error message *** -------------------------------------------------------------------------- mpirun noticed that process rank 1 with PID 16767 on node asus-Z10PA-D8-Series exited on signal 6 (Aborted). -------------------------------------------------------------------------- Do anybody know how to use multi-gpu in a node, or how to use mpi in multi gpu-node? Quote:
|
||
August 29, 2016, 13:41 |
Running slow on Titan Black
|
#22 |
New Member
Per Jřrgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14 |
Hi,
I have compiled rapidCFD and are able to run the (modified) tutorials... But they are 10 times slower on a Titan Black than running single threaded on the CPU :-( Could I have accidentally set on some debugging or am I missing some configuration of the GPU or maybe I modified the tutorials wrong... I tried pimpleFoam/pitzDaily and icoFoam/cavity Thanks in advance Best regards, Per |
|
September 9, 2016, 20:20 |
|
#23 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: When it comes to testing with many cores/streams/threads, you need to think "big". For example, with traditional CPU based computing, the rule of thumb is roughly a minimum of 50000 cells per core/processor/subdomain.
I don't know how much RAM it equates to on a GPU, but the rule of thumb I use for CPUs is that 1 million cells (hexahedral-dominant mesh) requires 500 MB to 1 GB of RAM, depending on the solver and the number of equations. Therefore, the default cavity and pitzDaily cases have 100 or 1000 cells... that would be like using a shotgun (the Titan) to kill an ant (the small tutorial cases) . So, with a Titan GPU, you should aim to something fairly bigger than those small tutorial cases.
__________________
Last edited by wyldckat; September 9, 2016 at 20:21. Reason: fixed a typo |
|
September 11, 2016, 13:47 |
|
#24 | |
New Member
Join Date: Jun 2016
Location: Germany
Posts: 2
Rep Power: 0 |
Hi,
I also tried to install RapidCFD in several ways as described here, but always get error massages... At first I tried to install as told by the github wiki, but I got error messages like: (see also attached file log.make) Code:
UOPwrite.dep:134: recipe for target 'Make/linux64NvccDPOpt/UOPwrite.o' failed make: *** [Make/linux64NvccDPOpt/UOPwrite.o] Error 1 Code:
could not open file mpi.h for source file UOPwrite.C due to No such file or directory Quote:
Like aee I tried to set the MPI to SYSTEMOPENMPI (from OPENMPI) as it was set in my OpenFoam installation (v3.0+), but then I get lots of output like: (see also attached file log.make_systemopenmpi) Code:
wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file UOPwrite.C could not open file omp.h for source file UOPwrite.C due to No such file or directory Some information about my setup:
|
||
September 12, 2016, 15:03 |
|
#25 | |
New Member
Join Date: Jun 2016
Location: Germany
Posts: 2
Rep Power: 0 |
I was finally able to kind of compile RapidCFD. (foamInstallationTest failed)
Even though I had two error messages remaining, I could call solvers like icoFoam. Code:
UOPwrite.dep:168: recipe for target 'Make/linux64NvccDPOptSYSTEMOPENMPI/UOPwrite.o' failed make: *** [Make/linux64NvccDPOptSYSTEMOPENMPI/UOPwrite.o] Error 1 Code:
UIPread.dep:168: recipe for target 'Make/linux64NvccDPOptSYSTEMOPENMPI/UIPread.o' failed make: *** [Make/linux64NvccDPOptSYSTEMOPENMPI/UIPread.o] Error 1 After a while I stopped the solver, because I was not expecting anything to happen anymore... (running parallel on 8 CPUs with OF v1606 did not take that long) Output: Code:
/*---------------------------------------------------------------------------*\ | RapidCFD by simFlow (sim-flow.com) | \*---------------------------------------------------------------------------*/ Build : dev-9fc614f4e816 Exec : simpleFoam Date : Sep 12 2016 Time : 19:52:30 Host : "INVLEVPC121" PID : 4999 Case : /home/NAME/RapidCFD/NAME-dev/run/TestCase nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Quote:
If there are any questions about how I "compiled" RC - just ask |
||
September 14, 2016, 13:10 |
|
#26 | |
New Member
Per Jřrgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14 |
Thanks, I will try testing on a bigger problem :-)
Quote:
Does anybody have a test case that gives a significant speed up? Thanks, Per Last edited by perjorgen; September 17, 2016 at 10:43. |
||
November 18, 2016, 13:22 |
|
#27 |
New Member
Martin Simon
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Did You get the issue with solver not starting resolved?
I'm having the same trouble... ---- How do you start using solvers when RCFD has been installed? Using sonicFoam produces only headers, but no real action. I can't use blockMesh under RCFD either... :/ Thanks! Last edited by wyldckat; November 20, 2016 at 14:10. Reason: merged posts done a few minutes apart |
|
December 8, 2016, 06:10 |
swak4Foam for RapidCFD
|
#28 |
Member
Jo Mar
Join Date: Jun 2015
Posts: 54
Rep Power: 11 |
Hi all,
does anyone have any experience in using swak4Foam in RapidCFD? Anyone managed to compile this yet? Thanks for any answers! Best regards Johannes |
|
December 9, 2016, 05:19 |
Again RapidCFD swak4Foam
|
#29 | |
Member
Jo Mar
Join Date: Jun 2015
Posts: 54
Rep Power: 11 |
Edit: I have opened a new thread for this, since this is not only installation of RapidCFD. Thread
__________________________________________________ ____________________________________ Hi all, as I said I am currently trying to compile swak4Foam with RapidCFD. The system I am using is Scientific Linux 6.7. I get the following error, when running ./Allwmake from within the folder swak4Foam: Quote:
So the settings seem to be alright, I think. I googled the error, but all I could find, was the instructions I already tried... I am a little stuck here right now, but to me the error seems to be not caused by the combination with RapidCFD but rather some options I just did not yet set right in swak4Foam. Can anybody point me into the right direction? Any idea, which way I could go from here? Thanks a lot for looking into this!! Best regards Johannes |
||
July 22, 2017, 13:23 |
|
#30 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
Dear all,
I am trying to install RapidCFD but encountered some problems and thought I could find help here! System: Ubuntu 16.04, nvcc: NVIDIA (R) Cuda compiler driver Cuda compilation tools, release 8.0, V8.0.61 I have GeForce GT 430 (just for testing purposes before going to a larger machine) with Nvidia drivers. System MPI: Open MPI 1.10.2 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 I have all prerequisites of OF 2.3.1. When I start the Allwmake script, some libraries get compiled and others don't, complaining about MPI. Although this message can be found in the output: Code:
Note: ignore spurious warnings about missing mpicxx.h headers Thanks in advance! Hisham |
|
August 25, 2017, 04:10 |
|
#31 | ||
Member
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10 |
Greetings everyone.
I am encountering same problems as @Hisham. Code:
1 error detected in the compilation of "/tmp/tmpxft_00002286_00000000-5_sonicFoam.cpp4.ii". sonicFoam.dep:3: recipe for target 'Make/linux64NvccDPOpt/sonicFoam.o' failed make[1]: *** [Make/linux64NvccDPOpt/sonicFoam.o] Error 2 make[1]: Target '/home/magar/OpenFOAM/RapidCFD-dev/platforms/linux64NvccDPOpt/bin/sonicFoam' not remade because of errors. make[1]: Leaving directory '/home/magar/OpenFOAM/RapidCFD-dev/applications/solvers/compressible/sonicFoam' RapdiCFD was tested and used for Cuda versions 6.5 and 7.5. I don't know if it has something to do with our cuda version. @martinsimon seems to have compiled RapidCFD but errors as: Quote:
@LisaMarie was able to compile past recently. Quote:
I request Members and Moderators if they could help us because newer versions seem to have some disagreement with RapidCFD. Thanks for any help. |
|||
October 5, 2017, 17:53 |
[Solved]
|
#32 |
Member
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10 |
Hello Everyone, glad to be back here.
So I contacted the developer of RC and we managed to come up with a new commit at my local branch on git-hub. Tracking errors of not compiling the solvers were traced to uncompiled sources of reading and formatting stl files. This was due to the updated version on flex on Linux distros. Please do the following changes in : $Home/RapidCFD/RapidCFD-dev/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L#L58 $Home/RapidCFD/RapidCFD-dev/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L#L53 Code:
from #if YY_FLEX_SUBMINOR_VERSION < 34 to #if YY_FLEX_MINOR_VERSION < 6 && YY_FLEX_SUBMINOR_VERSION < 34 Cheers. |
|
November 29, 2017, 11:40 |
|
#33 |
New Member
Jurado
Join Date: Nov 2017
Posts: 22
Rep Power: 8 |
Hello everyone,
I am trying to install RapidCFD on ubuntu 16.04 with cuda9-0. However i am encountering an error that I can't manage to solve. I have attached the compile log. If someone could help me it would be really appreciated. Thanks. |
|
March 16, 2018, 16:40 |
Pre-requisite softwares
|
#34 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
I tried installing RapidCFD earlier, but it encountered a lot of errors and didn't get installed completely.
I had installed the following before installing RapidCFD: Nvidia CUDA, g++, gcc, alongwith those present in the third party-dev directory Two errors(or warnings, I'm not sure) that I encountered are: /home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude/DimensionedFieldFunctions.C: In function ‘Foam::tmp<Foam::DimensionedField<typename Foam::scalarProduct<Form, Type>::type, GeoMesh> > Foam::operator&&(const Foam::DimensionedField<Type1, GeoMesh>&, const Foam::dimensioned<Type>&)’: /home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude/DimensionedFieldFunctions.C:648:3594: warning: typedef ‘productType’ locally defined but not used [-Wunused-local-typedefs] PRODUCT_OPERATOR(scalarProduct, &&, dotdot) ^ SOURCE=sets/topoSets/cellSet.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -I/home/satish/RapidCFD/RapidCFD-dev/src/triSurface/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/surfMesh/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/fileFormats/lnInclude -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/cellSet.o -c $SOURCE other messages were similar to these. 1. Please tell me the possible reasons why I'm encountering these errors. 2. Can I get the names of softwares to be installed before installing RapidCFD? Thanks. |
|
March 17, 2018, 05:59 |
|
#35 | |
New Member
Jurado
Join Date: Nov 2017
Posts: 22
Rep Power: 8 |
Quote:
Which cuda version did you use ? For I, The cuda version 9.0 did not work I had to use the 8 version |
||
March 17, 2018, 09:01 |
|
#36 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
I had installed cuda 9.2, so that might be the problem, I'll retry using cuda 8. Thanks friend.
|
|
March 21, 2018, 16:43 |
Errors while installing RapidCFD
|
#37 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
Hi, I tried installing RapidCFD again, this time with cuda 8.0, I still received a lot of errors, I terminated the process and copied some of the errors which I'm pasting here:
flex wmkdep.l make: flex: Command not found Makefile:74: recipe for target '/home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep' failed make: *** [/home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep] Error 127 ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required /home/satish/RapidCFD/ThirdParty-dev/Allwmake: 143: /home/satish/RapidCFD/ThirdParty-dev/Allwmake: Syntax error: ";" unexpected + wmakePrintBuild -check no git description found + /bin/rm -f OpenFOAM/Make/linux64NvccDPOpt/global.C + wmakeLnInclude OpenFOAM wmakeLnInclude: linking include files to OpenFOAM/lnInclude + wmakeLnInclude OSspecific/POSIX wmakeLnInclude: linking include files to OSspecific/POSIX/lnInclude + Pstream/Allwmake + wmake libso dummy wmakeLnInclude: linking include files to ./lnInclude /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found SOURCE=UPstream.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/UPstream.o -c $SOURCE /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ UPstream.dep:3: recipe for target 'Make/linux64NvccDPOpt/UPstream.o' failed make: *** [Make/linux64NvccDPOpt/UPstream.o] Error 1 + set +x Note: ignore spurious warnings about missing mpicxx.h headers wmake libso mpi wmakeLnInclude: linking include files to ./lnInclude /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found SOURCE=UOPwrite.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -DOMPI_SKIP_MPICXX -I/home/satish/RapidCFD/ThirdParty-dev/platforms/linux64Nvcc/openmpi-1.8.4/include -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOptOPENMPI/UOPwrite.o -c $SOURCE UOPwrite.C:29:17: fatal error: mpi.h: No such file or directory compilation terminated. UOPwrite.dep:3: recipe for target 'Make/linux64NvccDPOptOPENMPI/UOPwrite.o' failed make: *** [Make/linux64NvccDPOptOPENMPI/UOPwrite.o] Error 1 + OSspecific/POSIX/Allwmake wmakeLnInclude: linking include files to ./lnInclude /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found SOURCE=signals/sigFpe.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/sigFpe.o -c $SOURCE /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ signals/sigFpe.C: In static member function ‘static void* Foam::sigFpe::nanMallocHook_(size_t, const void*)’: signals/sigFpe.C:70:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = oldMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C:70:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = oldMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C:80:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = nanMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C:80:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = nanMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C: In destructor ‘Foam::sigFpe::~sigFpe()’: signals/sigFpe.C:150:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = oldMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C:150:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = oldMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C: In member function ‘void Foam::sigFpe::set(bool)’: signals/sigFpe.C:248:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = Foam::sigFpe::nanMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.C:248:1: warning: ‘__malloc_hook’ is deprecated [-Wdeprecated-declarations] __malloc_hook = Foam::sigFpe::nanMallocHook_; ^ /usr/include/malloc.h:153:38: note: declared here extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, ^ signals/sigFpe.dep:3: recipe for target 'Make/linux64NvccDPOpt/sigFpe.o' failed make: *** [Make/linux64NvccDPOpt/sigFpe.o] Error 1 + wmake libso OpenFOAM wmakeLnInclude: linking include files to ./lnInclude /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found SOURCE=particle/particle.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -I/home/satish/RapidCFD/RapidCFD-dev/src/meshTools/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/particle.o -c $SOURCE /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ particle/particle.dep:3: recipe for target 'Make/linux64NvccDPOpt/particle.o' failed make: *** [Make/linux64NvccDPOpt/particle.o] Error 1 + wmake libso genericPatchFields wmakeLnInclude: linking include files to ./lnInclude /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found /bin/sh: 1: /home/satish/RapidCFD/RapidCFD-dev/wmake/platforms/linux64Nvcc/wmkdep: not found SOURCE=genericFvPatchField/genericFvPatchFields.C ; nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_functi on" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -D__RESTRICT__='__restrict__' -I/home/satish/RapidCFD/RapidCFD-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/satish/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/satish/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/genericFvPatchFields.o -c $SOURCE /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; I can't figure out what's going wrong. Please help me. |
|
March 22, 2018, 05:24 |
|
#38 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
I had properly cloned the RapidCFD folder from github, but I'm still not sure if the directory RapidCFD-dev/wmake is complete as I got a lot of errors indicating wmake/platforms/linux64Nvcc/wmkdep is not present.
What should be the contents of this directory? |
|
March 24, 2018, 05:34 |
|
#39 | |
New Member
Jurado
Join Date: Nov 2017
Posts: 22
Rep Power: 8 |
Quote:
file:
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 2) Install Flex sudo apt-get install flex 3) Change the file in rapidCFD $Home/RapidCFD/RapidCFD-dev/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L#L58 $Home/RapidCFD/RapidCFD-dev/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L#L53 from #if YY_FLEX_SUBMINOR_VERSION < 34 to #if YY_FLEX_MINOR_VERSION < 6 && YY_FLEX_SUBMINOR_VERSION < 34 4) Change the architecture to adapt it to your graphic card ( Compute Capacity) aller dansRapidCFD/RapidCFD-dev/wmake/rules/linux64Nvcc ouvrir C et C++ et changer CC = nvcc -Xptxas -dlcm=cg -m64 -arch=sm_30 en CC = nvcc -Xptxas -dlcm=cg -m64 -arch=sm_61 (maybe yours is not 61 check it) 4) Install libz-dev sudo apt-get install libz-dev Then run again the installation, it worked for me, hope it will for you. But this just the install, I never managed to have a computation working . . . |
||
March 24, 2018, 14:16 |
|
#40 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
Thank you so much friend! It worked.
|
|
|
|