CUDA ERROR in hypre memory.c when running pipeOneD tutorial in OpenFOAM v2206
Similar to issue #34 (closed) I get the following error when running the pipeOneD tutorials:
------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _8993af73-20221106 OPENFOAM=2206 patch=221104 version=2206
Arch : "LSB;label=32;scalar=64"
Exec : laplacianFoam
Date : Sep 13 2023
Time : 19:51:21
Host : PC
PID : 107505
I/O : uncollated
Case : /media/ferran/OpenFOAM/tutorials/basic/laplacianFoam/pipeOneD
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
SIMPLE: no convergence criteria found. Calculations will run for 1 steps.
Reading field T
Reading diffusivity DT
No finite volume options present
Calculating temperature distribution
Time = 0.005
ExecutionTime = 0.03 s ClockTime = 0 s
Initializing PETSc... success
ExecutionTime = 0.05 s ClockTime = 0 s
CUDA ERROR (code = 1, invalid argument) at memory.c:765
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[62708,1],0]
Exit code: 1
-------------------------
I've built PETSc v3.19.5 with the following options:
./configure --with-precision=double --prefix=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/petsc-git PETSC_ARCH=$WM_OPTIONS --with-debugging=0 --COPTFLAGS=-O3 --CXXOPTFLAGS=-O3 --FOPTFLAGS=-O3 --CUDAOPTFLAGS=-O3 --download-fblaslapack --download-hypre --with-cuda --download-openmpi --download-openblas
I'm using OpenFOAM version 2206 and PETSc4FOAM latest version. I'm able to run all the other tutorial cases that do not depend on the GPU.