Skip to content

[caffe2] Fix warning in net_async_tracing.cc#7646

Merged
Maratyszcza merged 1 commit intopytorch:masterfrom
Maratyszcza:net-async-tracing-warning-fix
May 18, 2018
Merged

[caffe2] Fix warning in net_async_tracing.cc#7646
Maratyszcza merged 1 commit intopytorch:masterfrom
Maratyszcza:net-async-tracing-warning-fix

Conversation

@Maratyszcza
Copy link
Contributor

Compilers used to report a warning:

caffe2/core/net_async_tracing.cc: In member function 'void caffe2::tracing::Tracer::renameThreads()':
caffe2/core/net_async_tracing.cc:210:32: warning: overflow in implicit constant conversion [-Woverflow]
   const long numa_multiplier = 10e9;

This patch fixes it.

Compilers used to report a warning:
  caffe2/core/net_async_tracing.cc: In member function 'void caffe2::tracing::Tracer::renameThreads()':
  caffe2/core/net_async_tracing.cc:210:32: warning: overflow in implicit constant conversion [-Woverflow]
     const long numa_multiplier = 10e9;

This patch fixes it.
@Maratyszcza
Copy link
Contributor Author

@onnxbot retest this please

@Maratyszcza Maratyszcza merged commit 47ab3f9 into pytorch:master May 18, 2018
onnxbot added a commit to onnxbot/onnx-fb-universe that referenced this pull request May 18, 2018
petrex pushed a commit to petrex/pytorch that referenced this pull request May 23, 2018
…e2_core_hip

* 'caffe2_core_hip' of github.com:petrex/pytorch:
  Refactor cmake files to not add hip includes and libs globally
  Fix UB when converting negative floating values to uint8_t (pytorch#7644)
  [auto] Update onnx to 3fc5f43 - move finalize function to be public. (onnx/onnx#987) onnx/onnx@3fc5f43
  Fix duplicated thread pool flag
  [caffe2] Fix warning in net_async_tracing.cc (pytorch#7646)
  [auto] Update onnx to 8d548e2 - Update shape inference methods to throw exception (onnx/onnx#986) onnx/onnx@8d548e2
  Fix flaky atomic iter test (pytorch#7649)
  Fix onnx Pow export (pytorch#7657)
  [auto] Update onnx to 8356ad5 - Add unit test framework for the project C++ APIs (onnx/onnx#763) onnx/onnx@8356ad5
  [caffe2][nomnigraph] Add registry for optimization passes (pytorch#7656)
  [auto] Update onnx to 94ca052 - Update mypy version (onnx/onnx#968) onnx/onnx@94ca052
  fix nccl distributed documentation
weiyangfb pushed a commit to weiyangfb/pytorch that referenced this pull request Jun 11, 2018
Compilers used to report a warning:
  caffe2/core/net_async_tracing.cc: In member function 'void caffe2::tracing::Tracer::renameThreads()':
  caffe2/core/net_async_tracing.cc:210:32: warning: overflow in implicit constant conversion [-Woverflow]
     const long numa_multiplier = 10e9;

This patch fixes it.
@Maratyszcza Maratyszcza deleted the net-async-tracing-warning-fix branch December 8, 2018 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants