CUDA_VISIBLE_DEVICES empty broken again
@Jfaibussowitsch This is broken again. Using src/sys/tests/ex1.c
and a CUDA capable PETSc. Can you please fix it and put a test in so that it won't be broken again?
-bash-4.2$ CUDA_VISIBLE_DEVICES= ./ex1
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Missing or incorrect user input
[0]PETSC ERROR: Cannot explicitly disable the device set as default device type (cuda)
...
[0]PETSC ERROR: #1 PetscDeviceInitializeFromOptions_Internal() at /ibex/ai/home/zampins/miniforge/Devel/petsc/src/sys/objects/device/interface/device.cxx:644
[0]PETSC ERROR: #2 PetscInitialize_Common() at /ibex/ai/home/zampins/miniforge/Devel/petsc/src/sys/objects/pinit.c:994
[0]PETSC ERROR: #3 PetscInitialize() at /ibex/ai/home/zampins/miniforge/Devel/petsc/src/sys/objects/pinit.c:1260
[0]PETSC ERROR: #4 main() at ex1.c:16
[0]PETSC ERROR: No PETSc Option Table entries
[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_SELF
with errorcode 95.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------