Thanks Bruno, in the end I succeeded in installing the latest stable version from github. I recall briefly what I did in the hope that it can help others. 1)git clone https://github.com/dealii/dealii 2)cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ /root/dealii 3)cmake DEAL_II_WITH_CUDA:BOOL=ON 4)make 5)make install However when I tried to compile the solver_03.cu in tests/cuda I had few undefined symbols (due to the cxx11 prefix issue described in other parts). What I did was to compile the following "dummy.c" file _ZN6dealii18deal_II_exceptions9internals25get_cusolver_error_stringB5cxx11E16cusolverStatus_t() {
ZN6dealii18deal_II_exceptions9internals25get_cusolver_error_stringE16cuso} _ZN6dealii18deal_II_exceptions9internals25get_cusparse_error_stringB5cxx11E16cusparseStatus_t() { _ZN6dealii18deal_II_exceptions9internals25get_cusparse_error_stringE16cusp} _ZN6dealii9LogStream10get_streamB5cxx11Ev() { return 0; } Then I link the file with the following command: nvcc -o solver_03 solver_03.o -L/usr/local/lib/ -ldeal_II -std c++11 /root/dummy.o (before I compiled the source with nvcc -c solver_03.cu -O3 -I/usr/local/include -I ../../bundled/boost-1.62.0/include -std c++11). (I don't know if the The program works correctly on the GPU (I double checked running it under the control of the nvprof command). This is with CUDA 9.2. Thanks again and Best Wishes to everyone for a Happy 2019, Massimo On Mon, Dec 31, 2018 at 2:15 PM Bruno Turcksin <bruno.turck...@gmail.com> wrote: > Massimo, > > If you can use the development version of deal. The CUDA support is > pretty new and we have made a lot of progress since the latest > release. Look here > https://github.com/dealii/candi/blob/dealii-9.0/candi.cfg#L67 to > switch to the development version. If you want to use the release > version, I would advise you to switch to CUDA 8.0 > > Best, > > Bruno > > Le sam. 29 déc. 2018 à 09:57, Massimo Bernaschi > <massimo.bernas...@gmail.com> a écrit : > > > > I use this thread since I am having troubles installing dealii with CUDA > support. > > I am using the "candi.sh" route (hopefully this makes sense). > > I modified the dealii.package (file attached) to turn off Trilinos and > to turn on CUDA support. I am using GCC 5.3 and CUDA 9.2. > > The compilation fails with the following errors: > > > /root/deal.ii-candi/tmp/unpack/deal.II-v9.0.1/include/deal.II/matrix_free/cuda_matrix_free.templates.h(391): > error: a variable length array cannot have static storage duration > > > > > /root/deal.ii-candi/tmp/unpack/deal.II-v9.0.1/include/deal.II/matrix_free/cuda_matrix_free.templates.h(392): > error: a variable length array cannot have static storage duration > > > > I also attach the full candi_build.log file. Could the problem be that I > am also forcing the usage of the bundled Boost? > > Did someone succeed in compiling dealII with CUDA using the candi.sh > script? > > Thanks in advance and best regards, > > Massimo > > > > On Tuesday, November 20, 2018 at 1:46:39 PM UTC+1, Daniel Arndt wrote: > >> > >> Hi Chih-Che, > >> > >>> > >>> I am interested in testing the overlapping and different schemes > developed you and others in deal.II. > >>> > >>> I have one question: if I want to install the latest "develop" > version, I just simply type this: git clone > https://github.com/dealii/dealii, right? If not, which command I need to > type? > >> > >> Yes, you can obtain a recent version using that command. However, the > PR is not merged yet, so you would need to run something like the following > afterwards to checkout the relevant branch: > >> > >> git checkout -b masterleinad-cuda_aware_mpi master > >> git pull https://github.com/masterleinad/dealii.git cuda_aware_mpi > >> > >> > >> Best, > >> Daniel > > > > -- > > The deal.II project is located at http://www.dealii.org/ > > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > > --- > > You received this message because you are subscribed to a topic in the > Google Groups "deal.II User Group" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/xHmid5d5-iI/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > dealii+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dealii+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- Massimo Bernaschi: Istituto Applicazioni del Calcolo ---- | IAC-CNR | e-mail: massimo.bernas...@cnr.it | | Via dei Taurini, 19 | phone: +39 06 49937350 | | 00185 Roma - ITALY | fax: +39 06 4404306 | ------------------------------------------------------------------------------------------------------------------------ |Skype nickname: m.bernaschi | ------------------------------------------------------------------------------------------------------------------------ |See http://www.iac.cnr.it/~massimo for my GPG public key or check | |GnuPG Public Key Fingerprint (keyserver.linux.it) | |pub 1024/CAA3FB48 2001/01/04 Massimo Bernaschi <mass...@iac.rm.cnr.it> | | Key fingerprint = 3EFF 7AFF F8A4 F34E 382B DD81 57F3 700A CAA3 FB48 | ------------------------------------------------------------------------------------------------------------------------ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.