         << "--sm_copy\t\tUse SM initiated p2p transfers instead of Copy Engine\n";
 }
 
-void checkP2Paccess(int numGPUs)
+void checkP2Paccess()
 {
     for (auto device : cuda::devices()) {
     	static_assert(std::is_same<decltype(device), cuda::device_t>::value, "Unexpected type");

        stop.push_back(device.create_event());
    }

    vector<double> gpuLatencyMatrix(numGPUs * numGPUs);
    vector<double> cpuLatencyMatrix(numGPUs * numGPUs);

    for (auto device: cuda::devices()) {
        for (auto peer : cuda::devices()) {
            bool p2p_access_possible { false };
            if (test_p2p) {

            if (i == j) {
                gb *= 2;    //must count both the read and the write here
            }
            bandwidthMatrix(i, j) = gb / duration.count();
            if (test_p2p and p2p_access_possible) {
                cuda::device::peer_to_peer::disable_access(device, peer);
                cuda::device::peer_to_peer::disable_access(peer, device);
