--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Is there any reason why you still used the previous way? Is this because
> your GPU accelerator was launched some years ago so that you are unable to
> use the new simple way?
The problem with UVM is that it makes it easy to write bad code. I am
working on a code where we use UVM and it happens quite often that we
run some code that was intended for the GPU on the CPU. Because of UVM
it works but at the cost of performance and so it is harder to detect
that you made a mistake. Another advantage of copying the data
manually is that you don't hide the costly copy operation. This is
also the philosophy used in Kokkos. So yes UVM makes writing the code
easier but you need to be a lot more careful when you write the code
if you don't want to perform a bunch of useless copy. Of course, if
you have NVLink it doesn't matter but that only works for POWER chips
which most people don't have access to.
> Let me know once your merger is done so that I can start to install the
> deal.II with CUDA in the server I use now.
The merge was done but in the mean time we broke three tests for CUDA
:-(. I think that it is still worth to try to install deal with CUDA
and just update later.
> The CUDA compiler I use now in the server is shown in the following:
> [chueh@icycn06 cuda]$ nvcc --version
> nvcc: NVIDIA (R) Cuda compiler driver
> Copyright (c) 2005-2015 NVIDIA Corporation
> Built on Tue_Aug_11_14:27:32_CDT_2015
> Cuda compilation tools, release 7.5, V7.5.17
I don't know if that will work. I think we require CUDA 8.0. Because
the feature is brand new and we are all using CUDA 8.0, I am not sure
that it will work with CUDA 7.5 (nobody has ever tried).
> Also, I would appreciate to see the detailed instruction on how to install
> deal.II together with CUDA, because I don't know how to do that.
Yes, I still need to write the documentation. However it should be
pretty simple. You need CMake 3.9 and then just use
-DDEAL_II_WITH_CUDA=ON and it should work. Let me know if you have any
problem.
Best,
Bruno
sh ./p4est-setup.sh p4est-x-y-z.tar.gz /path/to/installationwhere
p4est-x-y-z.tar.gz
is the name of the p4est distribution file, and /path/to/installation
is a directory into which you want to install p4est.In both cases, you can configure deal.II using a line like
cmake -DP4EST_DIR=/path/to/installation -DDEAL_II_WITH_P4EST=ON -DDEAL_II_WITH_MPI=ON <...>if the p4est library isn't picked up automatically.
Best,
Bruno
> pgc++-Error-Unknown switch: -print-prog-name=ld
Don't use pgi :-) We aren't done with the pgi port.
[...]
Build FAST version in /work2/chueh/deal.II_project/p4est/p4est-build/FASTconfigure: WARNING: Static source code checker splint not foundconfigure: WARNING: Static source code checker splint not foundFAST version installed in /work2/chueh/deal.II_project/p4est/FASTBuild DEBUG version in /work2/chueh/deal.II_project/p4est/p4est-build/DEBUGconfigure: WARNING: Static source code checker splint not foundconfigure: WARNING: Static source code checker splint not foundDEBUG version installed in /work2/chueh/deal.II_project/p4est/DEBUG
Can you help me tell me if p4est has been installed successfully?
--
> I have already moved to the trilinos installation. But after installing for
> a while, I get the error that you can see below. Is this because I am using
> an old version of Intel MKL Math Kernel library? If not, does any one know
> how to fix it?
First you used pgi now you want to use MKL, I see that you like challenges ;-)
> -DBLAS_LIBRARY_NAMES:STRING="mkl_intel_lp64" \
>
> -DBLAS_LIBRARY_DIRS:STRING=/work2/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64
> \
> -DLAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64" \
>
> -DLAPACK_LIBRARY_DIRS:STRING=/work2/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64
> \
Try using this for the library names
-DBLAS_LIBRARY_NAMES:STRING="mkl_core;mkl_sequential"
-DLAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64"
Thanks for the reminder and helps. Indeed, our system administrator has trouble with installing the newer version of GNU C compiler. Would you provide detailed instructions on how to installing the GNU C compiler? Thanks!The system administrator told me that he was trying to install the newer version of GNU C compiler alone, but failed. He told me that people usually reinstall the newer version of linux UBUNTU system with the newer version of GNU C compiler instead of installing the newer version of GNU C compiler alone. However, because we have other important softwares installed/used in our system, I don't know when he is going to update the entire linux system. So, I guess that the only way to get the newer version of GNU C compiler is feasible right now. But we don't know how to get it working.
Chih-Che,2017-09-15 19:42 GMT-04:00 Chih-Che Chueh <chu...@gmail.com>:You definitely don't want to update your OS. I am also using ubuntu and I have several versions of gcc and clang installed. Lately, I have been using spack to install everything for me (https://github.com/LLNL/spack). This is becoming the standard way to install new programs on clusters at the DOE labs.
$spack install cuda
@Bruno I don't any experience with cuda, but do we need anything special but
$spack install cudato use it?
I guess one way is to use directly cuda compiler wrappers. It also looks like openmpi can be compiled with cuda support (then maybe MPI wrappers can be used directly?).
If you can roughly tell me how this shall work, I can try blindly extend deal.II package in Spack for CUDA and wait for you to test.
p.s. i guess whole lot of dependencies like Trilinos, PETSc, SLEPc would need to be turned off though...
On 17 Sep 2017, at 01:00, Bruno Turcksin <bruno.t...@gmail.com> wrote:Denis,2017-09-16 18:30 GMT-04:00 Denis Davydov <davy...@gmail.com>:@Bruno I don't any experience with cuda, but do we need anything special but
$spack install cudato use it?I wouldn't use spack to install cuda because there is nothing to compile. You need binaries and you need drivers that depends on your kernel. If you try to do something a little bit too exotic you get into
trouble when you upgrade your kernel or your drivers (I have been there...).I guess one way is to use directly cuda compiler wrappers. It also looks like openmpi can be compiled with cuda support (then maybe MPI wrappers can be used directly?).cuda support in openmpi allows you to by-pass the cpu when you want to send a MPI message from one GPU to another GPU. I don't think it changes the wrapper.
If you can roughly tell me how this shall work, I can try blindly extend deal.II package in Spack for CUDA and wait for you to test.I'll try to do it myself. I'll you know if I hit a road block.
You definitely don't want to update your OS. I am also using ubuntu and I have several versions of gcc and clang installed. Lately, I have been using spack to install everything for me (https://github.com/LLNL/spack). This is becoming the standard way to install new programs on clusters at the DOE labs. Last time I installed gcc myself was about a year ago and I just followed the instruction here https://gcc.gnu.org/install/configure.html If your admin wants to shoot me an email with the errors he is getting, I will be happy to help.
I though you could also get binaries (nvcc) and the rest by compiling CUDA, i.e. https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-runbut of course one can also set it as an externally provided package.
packages:
cuda:
version: [8.0]
paths:
cuda@8.0: /cuda_prefix/
buildable: False
--
I think you are expecting too much of Bruno. He has a day job as well, for which he is paid. I think you will need to figure out the installation on your system yourself -- otherwise, Bruno (or any other among us) will be asked to do so for everyone else on the mailing list who wants to install CUDA.
I'm going to add that installing a compiler will really only be the first step. After that, of course, comes the task of understanding how to program these graphics cards, and all of the other things that require interacting with the appropriate software levels. You will need to master all of these things at one point or other. You might as well learn how to install operating systems and compilers.
I'm going to add that installing a compiler will really only be the firstThat, too, is asking for too much. It's not something the average deal.II user ever needs to do, and it's something that we will never be able to document as well as the GCC folks. Please read their instructions -- they have very good installation instructions.
step. After that, of course, comes the task of understanding how to
program these graphics cards, and all of the other things that require
interacting with the appropriate software levels. You will need to master
all of these things at one point or other. You might as well learn how to
install operating systems and compilers.
Frankly speaking, all we need is write a simple, clear instruction on the updating the newer version of GNU C like you in deal.II write this for p4est (http://www.dealii.org/developer/external-libs/p4est.html) so that deal.II users would follow easily and quickly. Is it possible for any one in deal.II to have this kind of information?