[libfabric-users] How to enable FI_DBG printing

Tan Wei Ming, Bertrand bertrandtwm at u.nus.edu
Mon Jun 14 23:18:57 PDT 2021


Thanks for pointing me in the right direction. All works fine now.

Thanks and best,
From: Hefty, Sean <sean.hefty at intel.com>
Sent: Tuesday, June 15, 2021 2:40 AM
To: Tan Wei Ming, Bertrand <bertrandtwm at u.nus.edu>; libfabric-users at lists.openfabrics.org <libfabric-users at lists.openfabrics.org>
Subject: RE: How to enable FI_DBG printing

        - External Email -

Set FI_LOG_LEVEL=debug

or info, warn, etc.

It's not obvious where to look for this, but see "LOGGING INTERFACE" section from the fabric.7 man page


> Hi,Libfabric gives users FI_DBG/FI_INFO/FI_TRACE/FI_WARN (based on fi_log, which is
> defined in log.c) to print information. I try to enable it and check the debug
> information when learning rxm provider, but nothing happens. Could you give me any
> instructions how to enable it?Libfabric is cloned from the Libfabric’s latest master
> branch. The build process is configured with ‘--enable-debug’ (../configure --enable-
> debug --prefix=my_local_path)I have inserted a testing statement (FI_DBG(&rxm_prov,
> FI_LOG_EP_CTRL, “FI_DBG-Testing: rxm_get_conn\n”);) in rxm_get_conn() in rxm_conn.c and
> recompile the libfabric’s source code by ‘make; make install’.However, when running
> fi_rdm_tagged_pingpong, I can’t see the testing message.
> ---
>   Server: fi_rdm_tagged_pingpong -p ofi_rxm -S 65536 -I 1 -s server_ip
>   Client: fi_rdm_tagged_pingpong -p ofi_rxm -S 65536 -I 1 -s client_ip server_ip
> Terminal output:
>     bytes   iters   total       time     MB/sec    usec/xfer   Mxfers/sec
>     64k     1       128k        0.00s     79.49     824.50       0.00
> ---I have tested by inserting ‘print(...)’ directly in rxm_get_conn(). It actually
> prints the messge.Thanks and best,
> Bertrand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20210615/e51de11d/attachment.htm>

More information about the Libfabric-users mailing list