You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/24 01:05:28 UTC

[GitHub] lx75249 closed pull request #8796: Avoid odr-using static member that will cause undefined references in?

lx75249 closed pull request #8796: Avoid odr-using static member that will cause undefined references in?
URL: https://github.com/apache/incubator-mxnet/pull/8796
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/common/rtc.cc b/src/common/rtc.cc
index cc51aaa108..c559252003 100644
--- a/src/common/rtc.cc
+++ b/src/common/rtc.cc
@@ -74,7 +74,8 @@ CudaModule::Chunk::~Chunk() {
 CUfunction CudaModule::Chunk::GetFunction(
     const std::string& mangled_name,
     const Context& ctx) {
-  CHECK_EQ(ctx.dev_mask(), gpu::kDevMask)
+  int kDevMask = gpu::kDevMask;
+  CHECK_EQ(ctx.dev_mask(), kDevMask)
       << "CUDA Runtime compilation only supports Nvidia GPU.";
   auto iter = mod_.find(ctx.dev_id);
   CUmodule module;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services