From 9d27fd0977a4b48bb92a3b8ac8aaa1ea0fb4276c Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 14 Apr 2026 12:41:23 -0400 Subject: [PATCH] Correct MPIABI constants (don't use @const_ref) --- src/api/mpiabi.jl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/api/mpiabi.jl b/src/api/mpiabi.jl index 03263bef6..d1ebf2af1 100644 --- a/src/api/mpiabi.jl +++ b/src/api/mpiabi.jl @@ -256,18 +256,18 @@ const MPI_C_COMPLEX = MPI_C_FLOAT_COMPLEX @const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} 11 # Maximum Sizes for Strings -@const_ref MPI_MAX_DATAREP_STRING Cint 128 -@const_ref MPI_MAX_ERROR_STRING Cint 512 -@const_ref MPI_MAX_INFO_KEY Cint 256 -@const_ref MPI_MAX_INFO_VAL Cint 1024 -@const_ref MPI_MAX_LIBRARY_VERSION_STRING Cint 8192 -@const_ref MPI_MAX_OBJECT_NAME Cint 128 -@const_ref MPI_MAX_PORT_NAME Cint 1024 -@const_ref MPI_MAX_PROCESSOR_NAME Cint 256 -@const_ref MPI_MAX_STRINGTAG_LEN Cint 1024 -@const_ref MPI_MAX_PSET_NAME_LEN Cint 1024 +const MPI_MAX_DATAREP_STRING = Cint( 128) +const MPI_MAX_ERROR_STRING = Cint( 512) +const MPI_MAX_INFO_KEY = Cint( 256) +const MPI_MAX_INFO_VAL = Cint(1024) +const MPI_MAX_LIBRARY_VERSION_STRING = Cint(8192) +const MPI_MAX_OBJECT_NAME = Cint( 128) +const MPI_MAX_PORT_NAME = Cint(1024) +const MPI_MAX_PROCESSOR_NAME = Cint( 256) +const MPI_MAX_STRINGTAG_LEN = Cint(1024) +const MPI_MAX_PSET_NAME_LEN = Cint(1024) # Assorted Constants -@const_ref MPI_BSEND_OVERHEAD Cint 512 +const MPI_BSEND_OVERHEAD = Cint( 512) # Mode Constants - must be powers-of-2 to support OR-ing # File Open Modes