未验证 提交 15aa73df 编写于 作者: G Galaxy1458 提交者: GitHub

delete [-Wno-error=terminate], test=develop (#52490)

* delete [-Wno-error=terminate], test=develop

* remove GPUps[-Wterminate],test=develop
上级 80a4a2e5
......@@ -151,7 +151,6 @@ if(NOT WIN32)
-Wno-error=literal-suffix
-Wno-error=array-bounds #Warning in Eigen, gcc 12.2
-Wno-error=ignored-attributes # Warnings in Eigen, gcc 6.3
-Wno-error=terminate # Warning in PADDLE_ENFORCE
-Wno-error=int-in-bool-context # Warning in Eigen gcc 7.2
-Wimplicit-fallthrough=0 # Warning in tinyformat.h
${fsanitize})
......
......@@ -55,13 +55,13 @@ GPUResource::GPUResource(std::vector<int> &dev_ids, int index) {
GPUResource::~GPUResource() {
platform::CUDADeviceGuard guard(dev_id_);
for (size_t i = 0; i < local_streams_.size(); ++i) {
PADDLE_ENFORCE_GPU_SUCCESS(cudaStreamDestroy(local_streams_[i]));
PADDLE_WARN_GPU_SUCCESS(cudaStreamDestroy(local_streams_[i]));
}
for (size_t i = 0; i < comm_streams_.size(); ++i) {
PADDLE_ENFORCE_GPU_SUCCESS(cudaStreamDestroy(comm_streams_[i]));
PADDLE_WARN_GPU_SUCCESS(cudaStreamDestroy(comm_streams_[i]));
}
for (size_t i = 0; i < remote_streams_.size(); ++i) {
PADDLE_ENFORCE_GPU_SUCCESS(cudaStreamDestroy(remote_streams_[i]));
PADDLE_WARN_GPU_SUCCESS(cudaStreamDestroy(remote_streams_[i]));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册