SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (int i = 0; i<gpus; ++i)
  2.         for (int j = 0; j < gpus; ++j)
  3.         {
  4.             if (i != j)
  5.             {
  6.                 cudaDeviceCanAccessPeer(&access, i, j);
  7.                 if (access == 1)
  8.                     cout << "T: " << i << " -> " << j << "n";
  9.                 else
  10.                     cout << "N: " << i << " -> " << j << "n";
  11.             }
  12.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top