How to use Method `nccl_use_nonblocking` From 'torch/csrc/distributed/c10d/NCCLUtils.hpp'

Hello, I want to reform send&recv method to adapter my net env. When I try to call nccl_use_nonblocking and get error with ‘undefined reference to `c10d::nccl_use_nonblocking()’‘’.
Codes as follow:

#include <iostream>
#include <torch/csrc/distributed/c10d/NCCLUtils.hpp>
int main()
    auto x = c10d::nccl_use_nonblocking();
    std::cout << "x: " << x << "\n";
    return 0;

Results as follow:

Sys info:
sys: 4.15.0-213-generic #224-Ubuntu
CUDA Version: 12.1
python: 3.11.4
torch: 2.1.2