Questions tagged [theano-cuda]

theano-cuda relates to the installation, configuration, and use of the CUDA backend for Theano

144 questions
3
votes
1 answer

Theano with gpu. Using cuDNN version 5110 on context None

I'm trying to use Theano with gpu. My OS is Ubuntu 16.04 Firstly, typing import theano will result in Using cuDNN version 5110 on context None Mapped name None to device cuda0: GeForce GTX 1080 (0000:01:00.0) To see if my GPU is being used I try…
skarpov
  • 33
  • 1
  • 7
3
votes
1 answer

Using CUDA8 in theano

I have working installtion of CUDA8 and have installed theano, while importing the theano it searches for CUDA7.5 instead of CUDA8, How can tell theano to use CUDA8 instead of CUDA7.5? My sytem only have CUDA8, and it doesn't contain mixed…
Jayendra Parmar
  • 702
  • 12
  • 30
3
votes
0 answers

nvcc report compile error when train model using Keras

1.Problem: I designed a simple model using Keras ( backend: Theano) to train on stock data set. When configure Theano to use cpu, no problem appears. However, when using gpu, there will appear the problem as shown below. In file included…
Hayden
  • 105
  • 2
  • 7
3
votes
1 answer

Keras unsymmetrical data Diabetic Retinopathy Detection

I'm trying to make a predictive model for Diabetic Retinopathy Detection. The competition's trainig dataset includes hy-res images are unsymmetricaly divided in 5 classes: Normal-25807 images-73.48%; Mild-2442 images-6.96%; Moderate-5291…
Max Titkov
  • 185
  • 1
  • 11
3
votes
0 answers

Installing Theano with GPU on Windows 8.1 (Python 3.4). nvcc fatal

I'm trying to set up Theano to use GPU, but I keep getting the same error when importing theano in python environment: nvcc fatal : Could not set up the environment for Microsoft Visual Studio using 'd:/Microsoft Visual Studio …
Denis Yakovenko
  • 3,241
  • 6
  • 48
  • 82
3
votes
0 answers

Theano GPU Performance: Difference between theano.shared vs numpy.ndarray

Several places mention that using shared variables improve performance when using a GPU (like here, or here). But I haven't been able to find any numbers quantifying the difference. Today I was told by a Professor at my school that I am basically…
Toke Faurby
  • 5,788
  • 9
  • 41
  • 62
3
votes
1 answer

Theano + Cuda 8.0 on Windows - Compile Errors

I have Theano working fine on Windows 10 without GPU support. I have a new GTX 1080 and want to get Theano running on it. This requires the latest CUDA 8.0 Toolkit from NVIDIA. I have installed everything according to…
CowboyShow
  • 39
  • 3
3
votes
2 answers

How can I use Theano with GPU on Ubuntu 16.04?

I use the following script to test if GPU is working: #!/usr/bin/env python from theano import function, config, shared, sandbox import theano.tensor as T import numpy import time vlen = 10 * 30 * 768 # 10 x #cores x # threads per core iters =…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
3
votes
0 answers

theano running on GPU using terminal not in pycharm

I have installed Theano + CUDA + CUDNN as per instructions on official webpage. When I run on terminal: python import theano I get: Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled) When I do the same in Pycharm I get: ERROR…
user3025898
  • 561
  • 1
  • 6
  • 19
3
votes
1 answer

Theano simple linear regression runs on CPU instead of GPU

I created a simple python script (using Theano) performing linear regression which should be run on GPU. When code starts it says "using gpu device", but (according to the profiler) all operations are CPU-specific (ElemWise, instead of GpuElemWise,…
3
votes
1 answer

Understanding Theano Example in terms of GPU cores/threads

I am just getting started with Theano and Deep Learning. I was experimenting with an example from the Theano tutorial (http://deeplearning.net/software/theano/tutorial/using_gpu.html#returning-a-handle-to-device-allocated-data). The example code…
crayguy
  • 75
  • 6
3
votes
1 answer

theano.test() : optimization failure due to constant_folding (on ubuntu)

When running theano.test() on an Ubuntu operating system, some error message about an optimization failure is produced as follows: ERROR (theano.gof.opt): Optimization failure due to: constant_folding ERROR (theano.gof.opt): TRACEBACK: ERROR…
csz-carrot
  • 265
  • 3
  • 12
2
votes
1 answer

AttributeError: 'module' object has no attribute 'cuda'

I was trying to run this repository: https://github.com/WaqasSultani/AnomalyDetectionCVPR2018 In the Test_Anomaly_Detector_public.py I am stuck with error:theano.sandbox.cuda.use('gpu0') AttributeError: 'module' object has no attribute 'cuda'. I am…
mujahir
  • 187
  • 4
  • 11
2
votes
1 answer

Theano Unable to Use GPU

(theano_p27) ubuntu@ip-***-**-**-***:~$ device=cuda0,floatX=float32 GPUARRAY_CUDA_VERSION=80 python test.py WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions. ERROR (theano.gpuarray): Could not initialize pygpu,…
Saw
  • 21
  • 3
2
votes
0 answers

Google colab not using GPU, if keras backend is theano

I suspect google colab is not using GPU, if I use theano as backend with Keras. Same code trains at the rate of ~4min per epoc, if back end is Tensorflow, but takes 7 hours per epoc with theano as back end. I did following steps to modify keras…
Sekar S
  • 163
  • 1
  • 10
1
2
3
9 10