cjolivier01 closed pull request #10566: [MXNET-324] Use default nvcc when 
configured nvcc not present.
URL: https://github.com/apache/incubator-mxnet/pull/10566
 
 
   

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/Makefile b/Makefile
index b0758e9b4ba..043dcb9795e 100644
--- a/Makefile
+++ b/Makefile
@@ -255,11 +255,26 @@ ifneq ($(ADD_LDFLAGS), NONE)
 endif
 
 ifeq ($(NVCC), NONE)
+       # If NVCC has not been manually defined, use the CUDA_PATH bin dir.
        ifneq ($(USE_CUDA_PATH), NONE)
                NVCC=$(USE_CUDA_PATH)/bin/nvcc
        endif
 endif
 
+# Guard against displaying nvcc info messages to users not using CUDA.
+ifeq ($(USE_CUDA), 1)
+       # If NVCC is not at the location specified, use CUDA_PATH instead.
+       ifeq ("$(wildcard $(NVCC))","")
+               ifneq ($(USE_CUDA_PATH), NONE)
+                       NVCC=$(USE_CUDA_PATH)/bin/nvcc
+$(info INFO: nvcc was not found on your path)
+$(info INFO: Using $(NVCC) as nvcc path)
+               else
+$(warning WARNING: could not find nvcc compiler, the specified path was: 
$(NVCC))
+               endif
+       endif
+endif
+
 # Sets 'CUDA_ARCH', which determines the GPU architectures supported
 # by the compiled kernels.  Users can edit the KNOWN_CUDA_ARCHS list below
 # to remove archs they don't wish to support to speed compilation, or they can


 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to