[petsc-dev] behavior of PetscDefined(PETSC_HAVE_CUDA)

Mark Adams mfadams at lbl.gov
Thu Oct 15 22:34:19 CDT 2020


I have:

#if defined(PETSC_HAVE_CUDA)
  ierr = PetscInfo3(pc,"PETSC_HAVE_CUDA ---------------------Test:
factor=%D. cuda=%D
level=%D\n",pc_gamg->level_reduction_factors[pc_gamg->current_level],
*PetscDefined(PETSC_HAVE_CUDA)*,pc_gamg->current_level);CHKERRQ(ierr);
#endif

and see:

[0] PCGAMGCreateLevel_GAMG(): PETSC_HAVE_CUDA ---------------------Test:
factor=2.* cuda=0* level=0

So PETSC_HAVE_CUDA is defined yet PetscDefined(PETSC_HAVE_CUDA) is 0. Am I
missing something?

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201015/6d774605/attachment.html>


More information about the petsc-dev mailing list