[petsc-users] 'nvcc -show' Error for configure with NVCC

Satish Balay balay at mcs.anl.gov
Fri Oct 6 16:50:03 CDT 2023



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
> 



More information about the petsc-users mailing list