[GitHub] marcoabreu commented on a change in pull request #10566: [MXNET-324] Use default nvcc when configured nvcc not present.

2018-04-16 Thread GitBox
marcoabreu commented on a change in pull request #10566: [MXNET-324] Use 
default nvcc when configured nvcc not present.
URL: https://github.com/apache/incubator-mxnet/pull/10566#discussion_r181875332
 
 

 ##
 File path: 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
 
+# Gaurd 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))","")
 
 Review comment:
   Just to clarify, this resolves the filepath and is basically a 
```file.exists```, right?


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] marcoabreu commented on a change in pull request #10566: [MXNET-324] Use default nvcc when configured nvcc not present.

2018-04-16 Thread GitBox
marcoabreu commented on a change in pull request #10566: [MXNET-324] Use 
default nvcc when configured nvcc not present.
URL: https://github.com/apache/incubator-mxnet/pull/10566#discussion_r181875019
 
 

 ##
 File path: 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
 
+# Gaurd 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))","")
 
 Review comment:
   Is there a difference between empty and none?


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] marcoabreu commented on a change in pull request #10566: [MXNET-324] Use default nvcc when configured nvcc not present.

2018-04-16 Thread GitBox
marcoabreu commented on a change in pull request #10566: [MXNET-324] Use 
default nvcc when configured nvcc not present.
URL: https://github.com/apache/incubator-mxnet/pull/10566#discussion_r181874738
 
 

 ##
 File path: 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
 
+# Gaurd against displaying nvcc info messages to users not using CUDA.
 
 Review comment:
   Guard


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:
us...@infra.apache.org


With regards,
Apache Git Services