This is an automated email from the ASF dual-hosted git repository.
cjolivier01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 663df0f Use default nvcc when configured nvcc not present. (#10566)
663df0f is described below
commit 663df0fc623b11fd7adc87cc8ef65dbdf984691d
Author: Kellen Sunderland <[email protected]>
AuthorDate: Wed Apr 25 13:09:58 2018 -0700
Use default nvcc when configured nvcc not present. (#10566)
---
Makefile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Makefile b/Makefile
index b0758e9..043dcb9 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
--
To stop receiving notification emails like this one, please contact
[email protected].