Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions Samples/p2pBandwidthLatencyTest/p2pBandwidthLatencyTest.cu
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,9 @@ void outputBandwidthMatrix(int numGPUs, bool p2p, P2PDataTransfer p2p_method) {
cudaCheckError();
cudaStreamDestroy(stream[d]);
cudaCheckError();
cudaDeviceReset();
cudaCheckError();
}

cudaFreeHost((void *)flag);
cudaCheckError();
}

void outputBidirectionalBandwidthMatrix(int numGPUs, bool p2p) {
Expand Down Expand Up @@ -433,10 +432,9 @@ void outputBidirectionalBandwidthMatrix(int numGPUs, bool p2p) {
cudaCheckError();
cudaStreamDestroy(stream1[d]);
cudaCheckError();
cudaDeviceReset();
cudaCheckError();
}

cudaFreeHost((void *)flag);
cudaCheckError();
}

void outputLatencyMatrix(int numGPUs, bool p2p, P2PDataTransfer p2p_method) {
Expand Down Expand Up @@ -586,12 +584,11 @@ void outputLatencyMatrix(int numGPUs, bool p2p, P2PDataTransfer p2p_method) {
cudaCheckError();
cudaStreamDestroy(stream[d]);
cudaCheckError();
cudaDeviceReset();
cudaCheckError();
}

sdkDeleteTimer(&stopWatch);

cudaFreeHost((void *)flag);
cudaCheckError();
}

int main(int argc, char **argv) {
Expand Down