On Fri, 6 Oct 2023, Qiyue Lu wrote:

> Hello,
> I am trying to configure PETSc(current release version) with NVCC, with
> these options:
> ./configure --with-cc=nvcc --with-cxx=nvcc --with-fc=0 --with-cuda=1

this usage is incorrect. You need:

--with-cc=mpicc --with-cxx=mpicxx --with-cudac=nvcc --with-cuda=1

Satish

> 
> However, I got error like:
> ---------------------------------------------------------------------------------------------
>   Could not execute "['nvcc -show']":
>   nvcc fatal   : Unknown option '-show'
> *********************************************************************************************
> 
> I wonder where this -show option comes from? It seems safe to disable this
> option.
> 
> Thanks,
> Qiyue Lu
> 

Reply via email to