Skip to content

Commit

Permalink
remove throw will always call terminate() warning (facebookincubator#249
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: facebookincubator#249

Remove warnings like
```
gloo/cuda.cu:226:342: warning: throw will always call terminate() [-Wterminate]
```

Reviewed By: serhaty

Differential Revision: D20185029

fbshipit-source-id: 6c927f7348f8c9282959cfa7a35601b067bbb5a7
  • Loading branch information
jspark1105 authored and facebook-github-bot committed Mar 30, 2020
1 parent 113bde1 commit e8aaa34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gloo/nccl/nccl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ NCCLExecution<T>::NCCLExecution(std::vector<NCCLElement<T>>&& elements)
}

template <typename T>
NCCLExecution<T>::~NCCLExecution() {
NCCLExecution<T>::~NCCLExecution() noexcept(false) {
for (auto i = 0; i < this->elements.size(); i++) {
CudaDeviceScope scope(this->elements[i].device);
CUDA_CHECK(cudaEventDestroy(ncclEvents[i]));
Expand Down
2 changes: 1 addition & 1 deletion gloo/nccl/nccl.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class NCCLExecution {
public:
/* implicit */ NCCLExecution(std::vector<NCCLElement<T>>&& elements);
NCCLExecution(NCCLExecution&&) = default;
~NCCLExecution();
~NCCLExecution() noexcept(false);

std::vector<int> getDevices() const;
std::string getKey() const;
Expand Down

0 comments on commit e8aaa34

Please sign in to comment.