Re: [theano-users] Re: ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu Ubuntu16.04

2016-11-14 Thread Pascal Lamblin
I think CUDA 7.5 is not compatible with gcc 5, which is the default on Ubuntu.

You would have to either use CUDA 8, or install an older version of gcc.

On Sat, Nov 12, 2016, Beatriz G. wrote:
> Please, anyone could help me'???
> 
> El jueves, 10 de noviembre de 2016, 16:25:10 (UTC+1), Beatriz G. escribió:
> >
> > Hi, I am configuring the computer in order to work with GPU.
> >
> > Without GPU theano worked well, but when I created the .theanorc with the 
> > recomendated flags, it changed.
> >
> > First of all I will tell you my nvidia, g++ and nvcc version:
> >
> >
> > +-+
> > | NVIDIA-SMI 367.57 Driver Version: 
> > 367.57|
> >
> > |---+--+--+
> > | GPU  NamePersistence-M| Bus-IdDisp.A | Volatile Uncorr. 
> > ECC |
> > | Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage | GPU-Util  Compute 
> > M. |
> >
> > |===+==+==|
> > |   0  GeForce GTX 750 Ti  Off  | :06:00.0  On |  
> > N/A |
> > | 33%   28CP8 1W /  46W | 86MiB /  1999MiB |  0%  
> > Default |
> >
> > +---+--+--+
> > 
> >
> >
> >
> > +-+
> > | Processes:   GPU 
> > Memory |
> > |  GPU   PID  Type  Process name   
> > Usage  |
> >
> > |=|
> > |0  1603G   /usr/lib/xorg/Xorg   
> > 5MiB |
> > |0  3382G   /usr/lib/xorg/Xorg  
> > 79MiB |
> >
> > +-+
> >
> >
> > nvcc: Cuda compilation tools, release 7.5, V7.5.17
> > g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
> >
> > As you can see I use Ubuntu 16.04
> >
> > Here is my error:
> >
> > In file included from /home/bea/anaconda2/include/python2.7/Python.h:8:0,
> >  from mod.cu:3:
> > /home/bea/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: 
> > "_POSIX_C_SOURCE" redefined
> >  #define _POSIX_C_SOURCE 200112L
> >  ^
> > In file included from /usr/include/host_config.h:161:0,
> >  from /usr/include/cuda_runtime.h:76,
> >  from :0:
> > /usr/include/features.h:228:0: note: this is the location of the previous 
> > definition
> >  # define _POSIX_C_SOURCE 200809L
> >  ^
> > In file included from /home/bea/anaconda2/include/python2.7/Python.h:8:0,
> >  from mod.cu:3:
> > /home/bea/anaconda2/include/python2.7/pyconfig.h:1215:0: warning: 
> > "_XOPEN_SOURCE" redefined
> >  #define _XOPEN_SOURCE 600
> >  ^
> > In file included from /usr/include/host_config.h:161:0,
> >  from /usr/include/cuda_runtime.h:76,
> >  from :0:
> > /usr/include/features.h:169:0: note: this is the location of the previous 
> > definition
> >  # define _XOPEN_SOURCE 700
> >  ^
> > mod.cu(941): warning: pointless comparison of unsigned integer with zero
> > mod.cu(3001): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3004): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3006): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3009): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3011): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3014): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3017): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3020): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3022): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3025): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3027): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3030): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3032): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3035): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3038): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3041): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3043): warning: conversion from a string literal to "char *" is 
> > deprecated
> > mod.cu(3046): warn

[theano-users] Re: ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu Ubuntu16.04

2016-11-12 Thread Beatriz G.
Please, anyone could help me'???

El jueves, 10 de noviembre de 2016, 16:25:10 (UTC+1), Beatriz G. escribió:
>
> Hi, I am configuring the computer in order to work with GPU.
>
> Without GPU theano worked well, but when I created the .theanorc with the 
> recomendated flags, it changed.
>
> First of all I will tell you my nvidia, g++ and nvcc version:
>
>
> +-+
> | NVIDIA-SMI 367.57 Driver Version: 
> 367.57|
>
> |---+--+--+
> | GPU  NamePersistence-M| Bus-IdDisp.A | Volatile Uncorr. 
> ECC |
> | Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage | GPU-Util  Compute 
> M. |
>
> |===+==+==|
> |   0  GeForce GTX 750 Ti  Off  | :06:00.0  On |  
> N/A |
> | 33%   28CP8 1W /  46W | 86MiB /  1999MiB |  0%  
> Default |
>
> +---+--+--+
>   
>  
>
>
> +-+
> | Processes:   GPU 
> Memory |
> |  GPU   PID  Type  Process name   
> Usage  |
>
> |=|
> |0  1603G   /usr/lib/xorg/Xorg   
> 5MiB |
> |0  3382G   /usr/lib/xorg/Xorg  
> 79MiB |
>
> +-+
>
>
> nvcc: Cuda compilation tools, release 7.5, V7.5.17
> g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
>
> As you can see I use Ubuntu 16.04
>
> Here is my error:
>
> In file included from /home/bea/anaconda2/include/python2.7/Python.h:8:0,
>  from mod.cu:3:
> /home/bea/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: 
> "_POSIX_C_SOURCE" redefined
>  #define _POSIX_C_SOURCE 200112L
>  ^
> In file included from /usr/include/host_config.h:161:0,
>  from /usr/include/cuda_runtime.h:76,
>  from :0:
> /usr/include/features.h:228:0: note: this is the location of the previous 
> definition
>  # define _POSIX_C_SOURCE 200809L
>  ^
> In file included from /home/bea/anaconda2/include/python2.7/Python.h:8:0,
>  from mod.cu:3:
> /home/bea/anaconda2/include/python2.7/pyconfig.h:1215:0: warning: 
> "_XOPEN_SOURCE" redefined
>  #define _XOPEN_SOURCE 600
>  ^
> In file included from /usr/include/host_config.h:161:0,
>  from /usr/include/cuda_runtime.h:76,
>  from :0:
> /usr/include/features.h:169:0: note: this is the location of the previous 
> definition
>  # define _XOPEN_SOURCE 700
>  ^
> mod.cu(941): warning: pointless comparison of unsigned integer with zero
> mod.cu(3001): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3004): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3006): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3009): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3011): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3014): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3017): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3020): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3022): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3025): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3027): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3030): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3032): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3035): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3038): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3041): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3043): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3046): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3048): warning: conversion from a string literal to "char *" is 
> deprecated
> mod.cu(3051): warning: conversion from a string literal to "char *" is 
> deprecated
> In file included from /home/bea/anaconda2/include/python2.7/Python.h:8:0,
>  from mod.cu:3:
> /home/bea/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: 
> "_POSI