|
[Sponsors] |
[foam-extend.org] foam-extend. cudaSolvers compilation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2015, 04:42 |
foam-extend. cudaSolvers compilation
|
#1 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
I'm trying to compile cudaSolvers but I've got errors like the following. Does anyone successfully compiled these solvers on their computers ??
/usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply/coo_serial.cu: In function ‘void cusp::system::cuda::spmv_coo_serial_device(const Matrix&, const Array1&, Array2&)’: /usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply/coo_serial.cu:66:51: error: expected primary-expression before ‘<’ token spmv_coo_serial_kernel<IndexType,ValueType> <<<1,1>>> ^ /usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply/coo_serial.cu:66:57: error: expected primary-expression before ‘>’ token spmv_coo_serial_kernel<IndexType,ValueType> <<<1,1>>> ^ In file included from /usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply.h:21:0, from /usr/local/cuda-6.5/include/cusp/system/cuda/execution_policy.h:50, from /usr/local/cuda-6.5/include/cusp/execution_policy.h:34, from /usr/local/cuda-6.5/include/cusp/convert.h:25, from /usr/local/cuda-6.5/include/cusp/detail/coo_matrix.inl:18, from /usr/local/cuda-6.5/include/cusp/coo_matrix.h:597, from cudaSolver/cudaTypes.H:53, from cudaSolver/cudaSolver.H:42, from cudaSolver/cudaSolver.C:26: /usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply/coo_flat_spmv.h: In function ‘ValueType cusp::system::cuda::segreduce_warp(IndexType, IndexType, ValueType, IndexType*, ValueType*)’: /usr/local/cuda-6.5/include/cusp/system/cuda/detail/multiply/coo_flat_spmv.h:40:10: error: ‘threadIdx’ was not declared in this scope rows[threadIdx.x] = row; |
|
April 7, 2015, 08:46 |
|
#2 |
Senior Member
|
My guess is that Dominik Christ did that, he works for http://wikki.co.uk
http://www.cfd-online.com/Forums/mem...ik_christ.html |
|
September 6, 2015, 08:05 |
cudaSolvers compilation => toward a solution
|
#3 |
New Member
Thierry Rochemont
Join Date: Sep 2011
Location: lyon, france
Posts: 1
Rep Power: 0 |
Hi,
I was struggling also with cudaSolver compilation. I found out that by reverting to cusp library v0.4.0 might do the trick. git clone --branch v0.4.0 https://github.com/cusplibrary/cusplibrary.git cusplibray cd cusplibrary git checkout -b v0.4.0 copy cusp directory to your cuda install path I had also to change cuda_lib_dir to lib64 in customized etc/prefs.sh export cuda_lib_dir=$cuda_dir/lib64 go to $FOAM_SRC/cudaSolvers ./Allwmake Regards, OS system: ubuntu 14.04 grapic video = Geforce 970, with cuda_6.5.19_linux64.run openfoam: foam-extend-3.2 (nextRelease branch) gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 |
|
September 24, 2015, 12:20 |
|
#4 |
New Member
Join Date: Mar 2015
Posts: 3
Rep Power: 11 |
Hi,ThierryRochemont
have you solved this problem? I followed your step by add the "export cuda_lib_dir=$cuda_dir/lib64" to the path foam/foam/foam-extend-3.1/etc and I used the cusp v0.5.1, cuda7.0 but I still get the same problem. I hope I can get your help which will save me from the debug nightmare. |
|
September 25, 2015, 03:23 |
|
#5 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
You need to switch to cusp library v0.4.0
|
|
September 26, 2015, 12:18 |
|
#6 |
New Member
Join Date: Mar 2015
Posts: 3
Rep Power: 11 |
Thank you, Svensen
I have compiled it correctly by using the cusp library v0.4.0 But I am still confused why cusp v0.5.0 show the error: expected primary-expression before ‘<’ token. |
|
October 21, 2015, 15:54 |
|
#7 |
New Member
Paul Handy
Join Date: Sep 2014
Location: Idaho, USA
Posts: 21
Rep Power: 12 |
This is what got mine to compile.
|
|
Tags |
cuda, foam-extend-3.1 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error with reactingFoam | BakedAlmonds | OpenFOAM Running, Solving & CFD | 4 | June 22, 2016 03:21 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |