chrishkchris commented on a change in pull request #468: Distributted module
URL: https://github.com/apache/incubator-singa/pull/468#discussion_r305247134
 
 

 ##########
 File path: src/api/config.i
 ##########
 @@ -0,0 +1,33 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+
+
+// Pass in cmake configurations to swig
+#define USE_CUDA 1
+#define USE_CUDNN 1
+#define USE_OPENCL 0
+#define USE_PYTHON 1
+#define USE_MKLDNN 1
+#define USE_JAVA 0
+#define CUDNN_VERSION 7401
+
+// SINGA version
+#define SINGA_MAJOR_VERSION 1
 
 Review comment:
   In our server (at ncrg), I created a new anaconda python 3.6 enivorment and 
install singa 2.0 using "conda install -c nusdbsystem -c conda-forge 
singa=2.0.0=cudnn7.3.1_cuda10.0_py36"
   
   It passed the test: python -c "from singa import tensor"
   Also, it passed the old optimizer example: 
incubator-singa/example/cifar10/train.py can run and train successfully.
   
   However, the incubator-singa/examples/autograd/resnet.py cannot run, while 
the output is:
   Start intialization............
     0%|                                                                        
          | 0/200 [00:00<?, ?it/s]
   Traceback (most recent call last):
     File "examples/autograd/resnet.py", line 247, in <module>
       x = model(tx)
     File "examples/autograd/resnet.py", line 155, in __call__
       x = self.conv1(x)
     File 
"/home/dcsysh/anaconda3/envs/singa2/lib/python3.6/site-packages/singa/autograd.py",
 line 939, in __call__
       self.device_check(x, self.W, self.b)
     File 
"/home/dcsysh/anaconda3/envs/singa2/lib/python3.6/site-packages/singa/autograd.py",
 line 656, in device_check
       if var.device.id() != x_dev_id:
   AttributeError: 'NoneType' object has no attribute 'device'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

Reply via email to