ofgpu v1.1: GPU Linear Solvers for OpenFOAM Released
The Symscape ofgpu (v1.1) library for OpenFOAMŪ 2.2.x is now available. ofgpu is a linear solver library that targets NVIDIA CUDA GPU devices on Windows, Linux, and (untested) Mac OS X.
For more details see "GPU v1.1 Linear Solver Library for OpenFOAM". OpenFOAM is a registered trademark of OpenCFD and is unaffiliated with Symscape. |
confusion about the instruction
Thanks for the GPU code. I followed the building instruction to step 3. The ofgpu was successfully built how ever in the /install folder, there is only one folder named lib and there is only one file inside it: libofgpu.so. In this case, does it mean there is no need to perform the step as stated in instruction: ln -s /install/release/lib /install/lib ?
With the assumption that there is no need to create the soft link, I went on to step step 4. I'm not sure about the meaning of "CUDA modification". Is it simply apply the "MinGW Windows Modifications" patch at the root directory of OpenFOAM 2.2.x or I need to start from step 1 on webpage(http://www.symscape.com/openfoam-2-2-x-on-windows) to Install MinGW-w64 cross-compiler and zlib" first? Any suggestion is appreciated. |
problems compiling with CUDA-6.5
Hi,
thank you for releasing OFGPU v1.1. I am having problems though installing it on Ubuntu 14.04, while using CUDA 6.5. I successfully compiled it with cmake $HOME/ofgpu-1-1-0/src -DCMAKE_INSTALL_PREFIX=~/ofgpu-1-1-0 -DCMAKE_BUILD_TYPE=Release But then with make install I got the following error: [ 25%] Building NVCC (Device) object ofgpu/CMakeFiles/ofgpu.dir//./ofgpu_generated_sparsematrixsystem.cu.o In file included from /home/chris/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.cu:25:0: /home/chris/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:12:29: fatal error: cusp/ell_matrix.h: No such file or directory #include <cusp/ell_matrix.h> ^ compilation terminated. CMake Error at ofgpu_generated_sparsematrixsystem.cu.o.cmake:206 (message): Error generating /home/chris/ofgpu-1-1-0/obj/release/ofgpu/CMakeFiles/ofgpu.dir//./ofgpu_generated_sparsematrixsystem.cu.o make[2]: *** [ofgpu/CMakeFiles/ofgpu.dir/./ofgpu_generated_sparsematrixsystem.cu.o] Error 1 make[1]: *** [ofgpu/CMakeFiles/ofgpu.dir/all] Error 2 make: *** [all] Error 2 I think it's a CUSP problem, because I only found the new cusplibrary GIT and I am not able to compile it as well. Can someone guide me through the compilation process? Thanks in advance! Christian |
cannot install ofgpu-7.5
Hello
I get the following error below when i do make install Can anyone please help me. [ 20%] Building NVCC (Device) object ofgpu/CMakeFiles/ofgpu.dir/ofgpu_generated_sparsematrixsystem.cu.o In file included from /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.cu:25: /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:12:29: error: cusp/ell_matrix.h: No such file or directory /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:13:31: error: cusp/precond/ainv.h: No such file or directory /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:14:35: error: cusp/precond/diagonal.h: No such file or directory /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:15:59: error: cusp/precond/aggregation/smoothed_aggregation.h: No such file or directory In file included from /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.h:19, from /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/sparsematrixsystem.cu:25: /home/vinayas/OpenFOAM/ofgpu-1-1-0/src/ofgpu/solvertelemetry.h:28:27: error: cusp/multiply.h: No such file or directory CMake Error at ofgpu_generated_sparsematrixsystem.cu.o.cmake:207 (message): Error generating /home/vinayas/OpenFOAM/ofgpu-1-1-0/install/ofgpu/CMakeFiles/ofgpu.dir//./ofgpu_generated_sparsematrixsystem.cu.o make[2]: *** [ofgpu/CMakeFiles/ofgpu.dir/ofgpu_generated_sparsematrixsystem.cu.o] Error 1 make[1]: *** [ofgpu/CMakeFiles/ofgpu.dir/all] Error 2 make: *** [all] Error 2 With kind regards S vinaya |
Problems with the patch
Hi,
I followed the steps for installing the required versions of all the libraries and tools succesfully. I made sure all the versions are as mentioned in the instructions so that there are no compatibility issues. However, after installing all the tools and building ofgpu, I am not able to run the patch successfully on the OpenFOAM code. I am getting the following errors - patching file Makefile.inc.linux patching file Makefile.inc.mingw-w64 patching file Makefile.inc.darwin patching file common.c patching file scotch.h patching file Makefile patching file common.h patching file Makefile patching file tecio.patch patching file gpulibCUDA patching file c Hunk #1 FAILED at 12. 1 out of 1 hunk FAILED -- saving rejects to file c.rej patching file c++ Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file c++.rej patching file mplibOPENMPI patching file general Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file general.rej patching file gpulibCUDA patching file c++Debug patching file c patching file mplibMPICH patching file mplibMPICH-GM patching file cDebug patching file c++Opt patching file mplibOPENMPI patching file c++Prof patching file mplib patching file cOpt patching file mplibGAMMA patching file X patching file c++ patching file mplibMSMPI patching file cProf patching file general patching file gpulibCUDA patching file c++Debug patching file c npatching file mplibMPICH patching file mplibMPICH-GM patching file cDebug patching file c++Opt patching file mplibOPENMPI patching file c++Prof patching file mplibHPMPI patching file mplib patching file cOpt patching file mplibGAMMA patching file X patching file c++ patching file cProf patching file general can't find file to patch at input line 4511 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |--- wmake/wcleanAll (.../tags/2.2.x-2) (revision 831) |+++ wmake/wcleanAll (.../branches/2.2.x-2) (revision 831) -------------------------- File to patch: n: No such file or directory Skip this patch? [y] y Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 4522 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |--- wmake/wmakeLnInclude (.../tags/2.2.x-2) (revision 831) |+++ wmake/wmakeLnInclude (.../branches/2.2.x-2) (revision 831) -------------------------- File to patch: Skip this patch? [y] y Skipping patch. 1 out of 1 hunk ignored patch: **** File wmake is not a regular file -- can't patch Please help me fix this. I have been stuck on this for about 2 weeks. Regards, Manasi |
All times are GMT -4. The time now is 03:26. |