libgpuarray

It is recommended that you don’t use 0.8.2 for the new back-end. Use the
dev version of Theano or 0.9rc3.

Theano 0.8.2 is not a development version, its a stable version. Will new
back-end for gpu not work well with this theano version.  Should i use old
version i.e device =gpu or cnmem=1 in .rc file.

On Fri, Mar 10, 2017 at 10:45 AM, anishi gupta <[email protected]>
wrote:

> Dear Sir,
>
> I have theano 0.8.2 installed in my system.. Is it development version
> because new back end memory allocation (gpuarray) will work(optimize) on
> development version or version higher than 0.9 as read in theano doc .And
> do I require to install libgpuarray also for proper functioning of gpuarray
> backend.
>
> On Thu, Mar 9, 2017 at 9:04 PM, Ramana Subramanyam <[email protected]>
> wrote:
>
>> Yes. The RC file is for more frequent usecases. For lesser frequent ones
>> , you can override the settings using flags.
>> Ramana
>>
>> On Mar 9, 2017 20:52, "anishi gupta" <[email protected]> wrote:
>>
>>> And one thing more sir, if I am preallocating memory on .theanorc file
>>> then there is no need of setting device flag with gpuarray on terminal,
>>> simply I may run Python file.py.
>>> On 9 Mar 2017 8:45 p.m., "anishi gupta" <[email protected]> wrote:
>>>
>>>> It means by setting flag at run time with device=gpuarray, I am
>>>> allocating not pre allocating.
>>>> On 9 Mar 2017 8:16 p.m., "Kiuhnm Mnhuik" <[email protected]> wrote:
>>>>
>>>>> Allocation is a relatively slow operation so preallocation is an
>>>>> optimization. Without preallocation, Theano should allocate memory on the
>>>>> GPU only when needed.
>>>>>
>>>>> On Thursday, March 9, 2017 at 1:23:07 PM UTC+1, Ani wrote:
>>>>>>
>>>>>> And if I don't mention in .theanorc file and use  device= gpuarray
>>>>>> then by default how much memory it takes in GPU?
>>>>>> On 9 Mar 2017 5:44 p.m., "Kiuhnm Mnhuik" <[email protected]> wrote:
>>>>>>
>>>>>>> It's a flag just like "device". You can add
>>>>>>>
>>>>>>>     [gpuarray]
>>>>>>>     preallocate = 0.7
>>>>>>>
>>>>>>> to your .theanorc file.
>>>>>>>
>>>>>>> On Thursday, March 9, 2017 at 11:58:57 AM UTC+1, Ani wrote:
>>>>>>>>
>>>>>>>> Dear sir,
>>>>>>>>
>>>>>>>> kindly tell me how to use this line..gpuarray.preallocate=0.7....it
>>>>>>>> should be used at run time or in code??..I am using deep learning first
>>>>>>>> time..
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Mar 6, 2017 at 4:49 PM, anishi gupta <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Where should I use this sir...i mean how to use this..?
>>>>>>>>>
>>>>>>>>> On Mon, Mar 6, 2017 at 4:37 PM, Kiuhnm Mnhuik <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> You should use gpuarray.preallocate=0.7 (choose the % you want)
>>>>>>>>>>
>>>>>>>>>> On Monday, March 6, 2017 at 8:31:58 AM UTC+1, Ani wrote:
>>>>>>>>>>>
>>>>>>>>>>> Sir I think GPUArray will itself control GPU memory allocation,
>>>>>>>>>>> there is no need of cnmem now as it is depreciated whic is 
>>>>>>>>>>> controlled via
>>>>>>>>>>> CUDA backend.
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Mar 6, 2017 at 12:20 PM, anishi gupta <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello Sir,
>>>>>>>>>>>>
>>>>>>>>>>>> When I used command "device=gpuN python file.py" then code is
>>>>>>>>>>>> successfullt running on gpu.As you said theano FLAGS will override 
>>>>>>>>>>>> .rc file
>>>>>>>>>>>> settings so I think there is no need of making .theanorc file. 
>>>>>>>>>>>> Kindly tell
>>>>>>>>>>>> me how to make cuda memory faster if I dont use cnmem...I want to 
>>>>>>>>>>>> gain
>>>>>>>>>>>> speedup in gpu as compare to cpu....
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Mar 3, 2017 at 7:08 PM, Ramana Subramanyam <
>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> You don't set the device parameter. Set your device to gpuN
>>>>>>>>>>>>> and try running again. cnmem is from the old backend, which will 
>>>>>>>>>>>>> be
>>>>>>>>>>>>> depreciated soon. You should start using device=cudaN and
>>>>>>>>>>>>> config.gpuarray.preallocate instead of lib.cnmem. Also, you
>>>>>>>>>>>>> seem to override the config file with THEANO_FLAGS. Use either of 
>>>>>>>>>>>>> them
>>>>>>>>>>>>> (remember FLAGS can override .rc file settings).
>>>>>>>>>>>>>
>>>>>>>>>>>>> Ramana
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Friday, March 3, 2017 at 7:06:24 PM UTC+5:30, Ani wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> No sir I have put
>>>>>>>>>>>>>> [lib]
>>>>>>>>>>>>>> cnmem=1
>>>>>>>>>>>>>> but it shows error of lib command not found..what to do sir
>>>>>>>>>>>>>> now.
>>>>>>>>>>>>>> On 3 Mar 2017 5:07 p.m., "Kiuhnm Mnhuik" <[email protected]>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You probably forgot [lib]:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>     [lib]
>>>>>>>>>>>>>>     cnmem = 1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello Sir...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have successfully installed CuDNN and it is also
>>>>>>>>>>>>>>> available...but problem is with cnmem..When I wrote cnmem=1 in 
>>>>>>>>>>>>>>> my .theanorc
>>>>>>>>>>>>>>> file which is at home directory..it gives error on running any 
>>>>>>>>>>>>>>> code with
>>>>>>>>>>>>>>> cpu or gpu..please have a look at error(screenshot is attached).
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks in advance....
>>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>>> Anishi Gupta
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Saturday, 28 May 2016 11:05:29 UTC+5:30, Poornachandra
>>>>>>>>>>>>>>> Sandur wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>                    CNMem is  fast CUDA memory allocator ...
>>>>>>>>>>>>>>>> if you want to set it you can do it by writing the below lines 
>>>>>>>>>>>>>>>> in your
>>>>>>>>>>>>>>>> .theanorc file  ...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> [lib]
>>>>>>>>>>>>>>>> cnmem=1
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> -------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> For CUDNN you can do it with the following steps :
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *First download the file :
>>>>>>>>>>>>>>>> cudnn-7.0-linux-x64-v3.0-prod.tgz*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *Extract it to home directory*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *and set the LD_LIBRARY_PATH to the above extracted
>>>>>>>>>>>>>>>> directory*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *and then follow the below steps :*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *sudo cp /home/poornachandra/cuda/include/cudnn.h
>>>>>>>>>>>>>>>> /usr/local/cuda-7.5/include/*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *sudo cp /home/poornachandra/cuda/lib64/libcudnn*
>>>>>>>>>>>>>>>> /usr/local/cuda-7.5/lib64/*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, May 27, 2016 at 1:22 PM, Ramana Subramanyam <
>>>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hello there,
>>>>>>>>>>>>>>>>> If anyone is running theano on OSX, you need to make  a
>>>>>>>>>>>>>>>>> few changes to Poornachandra's answer. Instead of setting the 
>>>>>>>>>>>>>>>>> path of *LD_LIBRARY_PATH,
>>>>>>>>>>>>>>>>> *set *DYLD_LIBRARY_PATH *to the extracted directory of
>>>>>>>>>>>>>>>>> CUDNN. I have extracted them into `/home/packages/` and I am 
>>>>>>>>>>>>>>>>> using CUDA
>>>>>>>>>>>>>>>>> 7.5. Copy those files to the following destination,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 1) sudo cp ~/packages/cuda/lib/libcudnn* /Developer/NVIDIA
>>>>>>>>>>>>>>>>> /CUDA-7.5/lib/
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 2) sudo cp ~/packages/cuda/include/cudnn.h /Developer/
>>>>>>>>>>>>>>>>> NVIDIA/CUDA-7.5/include/
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hope this helps!
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Tuesday, March 15, 2016 at 7:52:50 AM UTC+5:30,
>>>>>>>>>>>>>>>>> Ashutosh Modi wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I am running the latest version of Theano 0.8 on linux
>>>>>>>>>>>>>>>>>> server using the GPUs. When I run my code I get the 
>>>>>>>>>>>>>>>>>> following message :
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Using gpu device 0: GeForce GTX TITAN X (CNMeM is
>>>>>>>>>>>>>>>>>> disabled, CuDNN not available)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Is it normal or something is lacking or is it some bug? I
>>>>>>>>>>>>>>>>>> ran my code after clearing the .thano directory.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Please help me in resolving this.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Ashutosh
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>>>> 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
>>>>>>>>>>>>>>>>> .
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> warm regards,
>>>>>>>>>>>>>>>> Poornachandra Sandur,
>>>>>>>>>>>>>>>> Mob.No.+91-9901913049
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>> You received this message because you are subscribed to a
>>>>>>>>>>>>>> topic in the Google Groups "theano-users" group.
>>>>>>>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>>>>>>>> https://groups.google.com/d/topic/theano-users/4qKbh5C_9e4/u
>>>>>>>>>>>>>> nsubscribe.
>>>>>>>>>>>>>> To unsubscribe from this group and all its topics, send an
>>>>>>>>>>>>>> email to [email protected].
>>>>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> ---
>>>>>>>>>>>>> You received this message because you are subscribed to a
>>>>>>>>>>>>> topic in the Google Groups "theano-users" group.
>>>>>>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>>>>>>> https://groups.google.com/d/topic/theano-users/4qKbh5C_9e4/u
>>>>>>>>>>>>> nsubscribe.
>>>>>>>>>>>>> To unsubscribe from this group and all its topics, send an
>>>>>>>>>>>>> email to [email protected].
>>>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> With Best Wishes and Regards
>>>>>>>>>>>> Anishi Gupta
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> With Best Wishes and Regards
>>>>>>>>>>> Anishi Gupta
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> ---
>>>>>>>>>> You received this message because you are subscribed to a topic
>>>>>>>>>> in the Google Groups "theano-users" group.
>>>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>>>> https://groups.google.com/d/topic/theano-users/4qKbh5C_9e4/u
>>>>>>>>>> nsubscribe.
>>>>>>>>>> To unsubscribe from this group and all its topics, send an email
>>>>>>>>>> to [email protected].
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> With Best Wishes and Regards
>>>>>>>>> Anishi Gupta
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> With Best Wishes and Regards
>>>>>>>> Anishi Gupta
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>> the Google Groups "theano-users" group.
>>>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>>>>> pic/theano-users/4qKbh5C_9e4/unsubscribe.
>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>> [email protected].
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>>>
>>>>> ---
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "theano-users" group.
>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>>> pic/theano-users/4qKbh5C_9e4/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>
>
> --
>
> With Best Wishes and Regards
> Anishi Gupta
>
>
>


-- 

With Best Wishes and Regards
Anishi Gupta

-- 

--- 
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.

Reply via email to