move finialize to outside profiler area

This commit is contained in:
Bryce Allen
2020-08-07 13:02:07 -04:00
parent 55af9daa9b
commit 3dd6045f2e

View File

@@ -201,19 +201,20 @@ int main(int argc, char **argv) {
printf("%d/%d ALLSUM = %f\n", world_rank, world_size, sum);
// cleanup
nvtxRangePushA("cleanup");
nvtxRangePushA("free");
//cudaFree(d_x);
//cudaFree(d_y);
cudaFree(m_x);
cudaFree(m_y);
cudaFree(m_allx);
cudaFree(m_ally);
cublasDestroy(handle);
MPI_Finalize();
nvtxRangePop();
cudaProfilerStop();
cublasDestroy(handle);
MPI_Finalize();
return EXIT_SUCCESS;
}