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 2018/06/20 12:01:10 UTC

[GitHub] vipandrew commented on issue #10745: Build from sources with Cuda 9.0 cudnn 7.1 on Window 10.

vipandrew commented on issue #10745: Build from sources with Cuda 9.0 cudnn 7.1 on Window 10.
URL: https://github.com/apache/incubator-mxnet/issues/10745#issuecomment-398724459
 
 
   Cuda.cmake is used to detect GPU compute capability by calling nvcc command like "**${CUDA_NVCC_EXECUTABLE} --run  ${__cufile}**" , then regular expression is caled in cmake to extract cuda compute capability string: string(REGEX MATCH "(**[1-9].[0-9]**)" __nvcc_out "${__nvcc_out}")
   
   In my computer with cuda9.0, what the command output is:c:\program files\nvidia gpu computing toolkit\cuda\v**9.0**\include\crt\math_functions.h : warning C4819: .......
   **6.1**
   
   Here comes the question, __nvcc_out is set to be 9.0 rather than 6.1(which is the right one we want), since 9.0 is wrongly matched, and that's why we saw "sm_90". Now the solution is clear, add "-w" arguments after nvcc command to depress warnings:  ${CUDA_NVCC_EXECUTABLE} --run  ${__cufile} **"-w"** ..., or change the regular expression to **([^a-zA-Z][1-9]\\\\.[0-9])**.

----------------------------------------------------------------
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