[CIG-SEISMO] specfem3d_globe with CUDA

Brad Aagaard baagaard at usgs.gov
Wed Apr 26 17:18:05 PDT 2017


On 04/26/2017 03:10 PM, Daniel B. Peter wrote:
> Hi Phil, hi all,
>
> thanks for pointing out that the default —with-cuda=cuda which leads to
> CUDA4 compilation is probably obsolete by now and we should change this
> default. i’m going to make the changes and fix to the configuration script.
>
> in your case however, i’m not sure why the initial
> ./configure —with-cuda=cuda6
> didn’t work.
>
> first, what are the GPU cards you want to run it on? then choose:
> -for Tesla K20: ./configure —with-cuda=cuda5
> -for Tesla K80: ./configure —with-cuda=cuda6
> -for Maxwell K2200: ./configure —with-cuda=cuda7
> -for Pascal P100: ./configure —with-cuda=cuda8
>
> we use the cuda*** specification as a short flag to point to the
> specific architecture and optimization. even if you have the cudatoolkit
> version 8, but want to compile kernels for a Tesla K20 card, you would
> choose —with-cuda=cuda5
>
> best wishes,
> daniel

If --with-cuda=cudaX is tied to a card rather than the CUDA version, why 
not be explicit and use

--with-cuda=K20
--with-cuda=K80
etc.

This would make it much more transparent to the user.

Regards,
Brad



More information about the CIG-SEISMO mailing list