[Chapel Merge] Allow comm=ofi debugging output to go to stderr

Branch: refs/heads/main
Revision: 961d3a0
Author: jhh67
Log Message:

Merge pull request #18564 from jhh67/T2600

Allow comm=ofi debugging output to go to stderr.

Some platforms that use slurm buffer stdout so that the debugging output from comm=ofi
can be lost in a crash. By default the debugging output now goes to stderr. This can be changed
via the CHPL_RT_COMM_OFI_DEBUG_FNAME variable. Setting it to STDOUT causes the output to go to
stdout, and setting it to STDERR causes the output to go to stderr. If it's set to any other
value it is used as the prefix for output files, one per locale (this is the existing behavior).

This resolves https://github.com/Cray/chapel-private/issues/2600.

[Reviewed by @ronawho]

Modified Files:
M runtime/src/comm/ofi/comm-ofi.c

Compare: https://github.com/chapel-lang/chapel/compare/1fcb05cfc38d...961d3a0770e1