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 Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr.
> ECC |
> | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute
> M. |
>
> |===============================+======================+======================|
> | 0 GeForce GTX 750 Ti Off | 0000:06:00.0 On |
> N/A |
> | 33% 28C P8 1W / 46W | 86MiB / 1999MiB | 0%
> Default |
>
> +-------------------------------+----------------------+----------------------+
>
>
>
>
> +-----------------------------------------------------------------------------+
> | Processes: GPU
> Memory |
> | GPU PID Type Process name
> Usage |
>
> |=============================================================================|
> | 0 1603 G /usr/lib/xorg/Xorg
> 5MiB |
> | 0 3382 G /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 <command-line>: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 <command-line>: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:
> "_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 <command-line>: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 <command-line>: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
> /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const
> void*, size_t)’:
> /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this
> scope
> return (char *) memcpy (__dest, __src, __n) + __n;
> ^
> mod.cu: In function ‘PyObject* CudaNdarray_Reshape(CudaNdarray*,
> PyObject*)’:
> mod.cu:955:122: warning: format ‘%lld’ expects argument of type ‘long long
> int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
> PyErr_Format(PyExc_ValueError, "size must remain unchanged,
> changed from %lld to %lld", CudaNdarray_SIZE(self), rval_size);
>
>
> ^
> mod.cu:955:122: warning: format ‘%lld’ expects argument of type ‘long long
> int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
> ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc
> return status', 1, 'for cmd', 'nvcc -shared -O3 -use_fast_math -m64
> -Xcompiler
> -DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden
>
> -Xlinker
> -rpath,/home/bea/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/cuda_ndarray
>
> -I/home/bea/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda
> -I/home/bea/anaconda2/lib/python2.7/site-packages/numpy/core/include
> -I/home/bea/anaconda2/include/python2.7
> -I/home/bea/anaconda2/lib/python2.7/site-packages/theano/gof -o
> /home/bea/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/cuda_ndarray/cuda_ndarray.so
>
> mod.cu -L/home/bea/anaconda2/lib -lcublas -lpython2.7 -lcudart')
>
> ['nvcc', '-shared', '-O3', '-use_fast_math', '-m64', '-Xcompiler',
> '-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden',
>
> '-Xlinker',
> '-rpath,/home/bea/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/cuda_ndarray',
>
> '-I/home/bea/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda',
> '-I/home/bea/anaconda2/lib/python2.7/site-packages/numpy/core/include',
> '-I/home/bea/anaconda2/include/python2.7',
> '-I/home/bea/anaconda2/lib/python2.7/site-packages/theano/gof', '-o',
> '/home/bea/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/cuda_ndarray/cuda_ndarray.so',
>
> 'mod.cu', '-L/home/bea/anaconda2/lib', '-lcublas', '-lpython2.7',
> '-lcudart']
> WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not
> available (error: cuda unavailable)
>
>
> I can not show you my .theanorc file because I created it, but now I can
> see it in its path, but I can not create another .theanorc file because a
> message pops out telling that that name already exists.
>
> Thank you very much for your help.
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.