<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Dominic and Paul,</div><div><br></div><div>Thanks for your answers. Unfortunately, it did not work. Same error message related to the thrust directory:</div>
<div><br></div><div><br></div><div><div>./configure --with-x=1 --with-mpi=0 --with-cc=icc --with-cxx=icpc --with-clanguage=cxx --with-fc=ifort --with-cuda=1 --with-cuda-dir=/usr/local/cuda-6.0 --with-cuda-arch=sm_35 --with-thrust=1 --with-thrust-dir=/usr/local/cuda-6.0/include --with-cusp=1 --with-cusp-dir=/usr/local/cuda-6.0/include --with-debugging=1 --with-scalar-type=real --with-precision=double --download-fblaslapack</div>
<div>===============================================================================</div><div>             Configuring PETSc to compile on your system                       </div><div>===============================================================================</div>
<div>TESTING: checkInclude from config.headers(config/BuildSystem/config/headers.py:86)                                                                *******************************************************************************</div>
<div>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</div><div>-------------------------------------------------------------------------------</div><div>--with-thrust-dir=/usr/local/cuda-6.0/include did not work</div>
<div>*******************************************************************************</div></div><div><br></div><div><br></div><div>I do not see what else to do...I have a standard CUDA installation that came with thrust.</div>
<div>I am using ubuntu 12.04, I do not know if that could help.</div><div>I tried with PETSc 3.4.1 and 3.5.1. Same problem.</div><div><br></div><div>Christophe</div><div><br></div><div><br></div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 28 Aug 2014 08:38:12 -0600<br>
From: Dominic Meiser <<a href="mailto:dmeiser@txcorp.com">dmeiser@txcorp.com</a>><br>
To: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] Unable to configure PETSc with CUDA:<br>
        Problem with thrust directory<br>
Message-ID: <<a href="mailto:53FF3ED4.1090002@txcorp.com">53FF3ED4.1090002@txcorp.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Can you try configuring with<br>
<br>
--with-thrust-dir=/usr/local/cuda-6.0/include<br>
<br>
I.e. omit the 'thrust' at the end of the path. Probably you'll need the<br>
same fix with cusp:<br>
<br>
--with-cusp-dir=/usr/local/cuda-6.0/include<br>
<br>
Cheers,<br>
Dominic<br></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
On 08/28/2014 08:13 AM, Christophe Ortiz wrote:<br>
> Hi all,<br>
><br>
> I have implemented a problem of coupled diffusion equations in 1D<br>
> using PETSc. I was able to configure PETSC with and without MPI. The<br>
> code runs well in both cases.<br>
><br>
> Now I would like to test CUDA but I am unable to configure it. I get<br>
> an error message related to thrust directory.<br>
><br>
> The options I use to configure are the following:<br>
><br>
> --with-x=1 --with-mpi=0 --with-cc=icc --with-cxx=icpc<br>
> --with-clanguage=cxx --with-fc=ifort --with-cuda=1<br>
> --with-cuda-dir=/usr/local/cuda-6.0 --with-cuda-arch=sm_35<br>
> --with-cudac=/usr/local/cuda/bin/nvcc --with-thrust=1<br>
> --with-thrust-dir=/usr/local/cuda-6.0/include/thrust --with-cusp=1<br>
> --with-cusp-dir=/usr/local/cuda-6.0/include/cusp<br>
> --download-txpetscgpu=1 --with-debugging=1 --with-scalar-type=real<br>
> --with-precision=double --download-f-blas-lapack<br>
><br>
> The error message I get is:<br>
><br>
> ===============================================================================<br>
>              Configuring PETSc to compile on your system<br>
> ===============================================================================<br>
> TESTING: checkInclude from<br>
> config.headers(config/BuildSystem/config/headers.py:86)<br>
> *******************************************************************************<br>
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log<br>
> for details):<br>
> -------------------------------------------------------------------------------<br>
> --with-thrust-dir=/usr/local/cuda-6.0/include/thrust did not work<br>
> *******************************************************************************<br>
><br>
><br>
> Did I miss something ?<br>
> My GPU is a GeForce Titan Black and I am using CUDA 6.0.<br>
><br>
> Many thanks in advance for your help.<br>
> Christophe<br>
><br>
<br>
<br>
--<br>
Dominic Meiser<br>
Tech-X Corporation<br>
5621 Arapahoe Avenue<br>
Boulder, CO 80303<br>
USA<br>
Telephone: 303-996-2036<br>
Fax: 303-448-7756<br>
<a href="http://www.txcorp.com" target="_blank">www.txcorp.com</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 28 Aug 2014 08:30:40 -0600<br>
From: Paul Mullowney <<a href="mailto:paulmullowney@gmail.com">paulmullowney@gmail.com</a>><br>
To: Dominic Meiser <<a href="mailto:dmeiser@txcorp.com">dmeiser@txcorp.com</a>><br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] Unable to configure PETSc with CUDA:<br>
        Problem with thrust directory<br>
Message-ID:<br>
        <CAMJ8fwroFUxG-rpbMpaJEw=<a href="mailto:0aQdyNm9NMxMzsxWVGGPWZqhGCQ@mail.gmail.com">0aQdyNm9NMxMzsxWVGGPWZqhGCQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Also, get rid of --download-txpetscgpu=1. That doesn't exist anymore.<br>
-Paul<br>
<br>
<br>
On Thu, Aug 28, 2014 at 8:38 AM, Dominic Meiser <<a href="mailto:dmeiser@txcorp.com">dmeiser@txcorp.com</a>> wrote:<br>
<br>
> Can you try configuring with<br>
><br>
> --with-thrust-dir=/usr/local/cuda-6.0/include<br>
><br>
> I.e. omit the 'thrust' at the end of the path. Probably you'll need the<br>
> same fix with cusp:<br>
><br>
> --with-cusp-dir=/usr/local/cuda-6.0/include<br>
><br>
> Cheers,<br>
> Dominic<br>
><br>
><br>
> On 08/28/2014 08:13 AM, Christophe Ortiz wrote:<br>
><br>
>> Hi all,<br>
>><br>
>> I have implemented a problem of coupled diffusion equations in 1D using<br>
>> PETSc. I was able to configure PETSC with and without MPI. The code runs<br>
>> well in both cases.<br>
>><br>
>> Now I would like to test CUDA but I am unable to configure it. I get an<br>
>> error message related to thrust directory.<br>
>><br>
>> The options I use to configure are the following:<br>
>><br>
>> --with-x=1 --with-mpi=0 --with-cc=icc --with-cxx=icpc<br>
>> --with-clanguage=cxx --with-fc=ifort --with-cuda=1<br>
>> --with-cuda-dir=/usr/local/cuda-6.0 --with-cuda-arch=sm_35<br>
>> --with-cudac=/usr/local/cuda/bin/nvcc --with-thrust=1<br>
>> --with-thrust-dir=/usr/local/cuda-6.0/include/thrust --with-cusp=1<br>
>> --with-cusp-dir=/usr/local/cuda-6.0/include/cusp --download-txpetscgpu=1<br>
>> --with-debugging=1 --with-scalar-type=real --with-precision=double<br>
>> --download-f-blas-lapack<br>
>><br>
>> The error message I get is:<br>
>><br>
>> ============================================================<br>
>> ===================<br>
>>              Configuring PETSc to compile on your system<br>
>> ============================================================<br>
>> ===================<br>
>> TESTING: checkInclude from config.headers(config/<br>
>> BuildSystem/config/headers.py:86) ******************************<br>
>> *************************************************<br>
>>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>
>> details):<br>
>> ------------------------------------------------------------<br>
>> -------------------<br>
>> --with-thrust-dir=/usr/local/cuda-6.0/include/thrust did not work<br>
>> ************************************************************<br>
>> *******************<br>
>><br>
>><br>
>> Did I miss something ?<br>
>> My GPU is a GeForce Titan Black and I am using CUDA 6.0.<br>
>><br>
>> Many thanks in advance for your help.<br>
>> Christophe<br>
>><br>
>><br>
><br>
> --<br>
> Dominic Meiser<br>
> Tech-X Corporation<br>
> 5621 Arapahoe Avenue<br>
> Boulder, CO 80303<br>
> USA<br>
> Telephone: 303-996-2036<br>
> Fax: 303-448-7756<br>
> <a href="http://www.txcorp.com" target="_blank">www.txcorp.com</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140828/70c223ee/attachment-0001.html" target="_blank">http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140828/70c223ee/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
petsc-users mailing list<br>
<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/petsc-users</a><br>
<br>
<br>
End of petsc-users Digest, Vol 68, Issue 63<br>
*******************************************<br>
<br>
----------------------------<br>
Confidencialidad:<br>
Este mensaje y sus ficheros adjuntos se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente respondiendo al mensaje y proceda a su destrucción.<br>

<br>
Disclaimer:<br>
This message and its attached files is intended exclusively for its recipients and may contain confidential information. If you received this e-mail in error you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In this case, please notify us by a reply and delete this email and its contents immediately.<br>

----------------------------<br>
<br>
</blockquote></div><br></div></div>