Discussion:
[theano-users] Can we place .theanorc file in a location other than the default $HOME directory?
Abhishek Shivkumar
2015-07-22 10:34:57 UTC
Permalink
We have Theano installed on a cluster of nodes and we want to have just
one copy of the .theanorc file that everyone can access. We don't want to
put it in everyone's home directory and maintain multiple copies.

Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?

Thanks
Abhishek S
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Daniel Renshaw
2015-07-22 10:43:17 UTC
Permalink
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.

This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.

Daniel


[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have just
one copy of the .theanorc file that everyone can access. We don't want to
put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Abhishek Shivkumar
2015-07-22 10:47:16 UTC
Permalink
Thanks Daniel. Not sure how I overlooked that part of the documentation.
Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have just
one copy of the .theanorc file that everyone can access. We don't want to
put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-17 19:48:42 UTC
Permalink
Hi Abhishek,

I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?

Thanks.
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the documentation.
Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have just
one copy of the .theanorc file that everyone can access. We don't want to
put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Frédéric Bastien
2015-09-17 20:09:32 UTC
Permalink
How did you create it? You need to export it in your .bashrc file

export THEANORC=...

Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the documentation.
Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We don't
want to put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-17 21:08:59 UTC
Permalink
Hi Fred,

Yes this is exactly how I did it. A compile directory was created to where
I specified it, but it still wants to create another one in $HOME/ where I
don't have access to.

Here is the error:

ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.

I am using version 0.6, as this is the approved version by my company.

I see this problem only when I run theano in spark in yarn-cluster mode,
but when I run it in standalone mode everything works perfectly fine and
the performance is great.

The only solution I can think of right now (not ideal) is to modify the
compiledir.py file in site-packages/theano/gof, specifically line 141
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'

Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the documentation.
Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We don't
want to put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pascal Lamblin
2015-09-17 22:05:58 UTC
Permalink
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster mode,
but when I run it in standalone mode everything works perfectly fine and
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc until
it is restarted or reloaded?

Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify the
compiledir.py file in site-packages/theano/gof, specifically line 141
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the documentation.
Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We don't
want to put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-17 22:44:09 UTC
Permalink
Hi Pascal,

I can actually access THEANORC within the spark environment:
os.getenv('THEANORC') -> points to the location of my .theanorc.

So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster mode,
but when I run it in standalone mode everything works perfectly fine and
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc until
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify the
compiledir.py file in site-packages/theano/gof, specifically line 141
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek Shivkumar
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel Renshaw
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain multiple
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located at
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pascal Lamblin
2015-09-17 22:48:11 UTC
Permalink
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster mode,
but when I run it in standalone mode everything works perfectly fine and
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc until
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify the
compiledir.py file in site-packages/theano/gof, specifically line 141
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek Shivkumar
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel Renshaw
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain multiple
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located at
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-18 04:59:38 UTC
Permalink
Post by Pascal Lamblin
That is strange. Can you check whether it is actually read?
Yes I can and I actually print it at the end of the job and it seems to be
pointing to the correct path. No idea why it still tries to write to the
default location though.
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly fine
and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically line
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this on
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel Renshaw
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can access.
We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-25 04:03:13 UTC
Permalink
I just wanted to follow up on this issue. I made some changes in
compiledir.py, specifically:
In line 141: instead of: home = os.getenv('HOME')
home = '/tmp/theano/'
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly fine
and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically line
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this on
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel Renshaw
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can access.
We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-25 04:09:53 UTC
Permalink
I just wanted to follow up on this issue. I made some changes in
compiledir.py, specifically:
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error

File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main

command = pickleSer._read_with_length(infile)

File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length

return self.loads(obj)

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>

from theano.gof import \

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>

from theano.gof.cc import \

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>

from theano.gof import link

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>

from theano.gof.type import Type

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>

from theano.gof.op import CLinkerObject

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>

from theano.gof.cmodule import GCC_compiler

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>

from theano.gof.compiledir import gcc_version_str, local_bitwidth

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>

in_c_key=False)

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar

configparam.__get__()

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__

self.__set__(None, val_str)

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__

self.val = self.filter(val)

File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir

" '%s'. Check the permissions." % path)

ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.



Any intuition on why this might happen?

Thanks!
Temraz
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly fine
and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically line
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this on
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel Renshaw
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can access.
We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohamed Temraz
2015-09-26 06:31:37 UTC
Permalink
I just wanted to follow up on this issue. I made some changes in
compiledir.py, specifically:
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error:

----- Error Log -----

File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)

ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Post by t***@gmail.com
I just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Any intuition on why this might happen?
Thanks!
Temraz
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly
fine and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically line
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this on
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel
Renshaw
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can
access. We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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/RTH742rtKOY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pascal Lamblin
2015-09-26 21:11:30 UTC
Permalink
Hi,

What is the full path of the compiledir.py that you changed?
Apparently, spark uses the following one:
/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py

Is that the one you modified?

Maybe you need to clear spark's filecache (I have no idea how to do
that) if you changed the version of theano.
Post by t***@gmail.com
I just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
----- Error Log -----
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Post by t***@gmail.com
I just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Any intuition on why this might happen?
Thanks!
Temraz
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in yarn-cluster
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly
fine and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to modify
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically line
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this on
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel
Renshaw
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can
access. We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file located
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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/RTH742rtKOY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2015-09-28 17:38:22 UTC
Permalink
Thanks Pascal for your reply.

Correct, the script I modified is in
/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py.

I will look into the issue of how to clear spark's filecache and post an
update when this hopefully works.

Thanks!
Temraz
Post by Pascal Lamblin
Hi,
What is the full path of the compiledir.py that you changed?
/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py
Is that the one you modified?
Maybe you need to clear spark's filecache (I have no idea how to do
that) if you changed the version of theano.
Post by t***@gmail.com
I just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py,
below
Post by t***@gmail.com
----- Error Log -----
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
Post by t***@gmail.com
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
Post by t***@gmail.com
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
Post by t***@gmail.com
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
Post by t***@gmail.com
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
Post by t***@gmail.com
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
Post by t***@gmail.com
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
Post by t***@gmail.com
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
Post by t***@gmail.com
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
Post by t***@gmail.com
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Post by t***@gmail.com
Check the permissions.
Post by t***@gmail.com
I just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py,
below
Post by t***@gmail.com
Post by t***@gmail.com
is the full log of the error
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
Post by t***@gmail.com
Post by t***@gmail.com
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Post by t***@gmail.com
Post by t***@gmail.com
Check the permissions.
Any intuition on why this might happen?
Thanks!
Temraz
On Thursday, September 17, 2015 at 3:48:13 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
Hi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.com
So if I were to make changes to theano files in site-packages,
making
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
changes to compiledir.py would guarantee that the changes are in
effect
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
right?
That should work, yes.
Post by t***@gmail.com
On Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal Lamblin
Post by t***@gmail.com
I see this problem only when I run theano in spark in
yarn-cluster
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
mode,
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
but when I run it in standalone mode everything works perfectly
fine and
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
the performance is great.
Is it possible that spark does not use all the environment
variables
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
that you defined in your .bashrc, or does not re-read your
.bashrc
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
until
Post by t***@gmail.com
Post by Pascal Lamblin
it is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.com
The only solution I can think of right now (not ideal) is to
modify
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
compiledir.py file in site-packages/theano/gof, specifically
line
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
141
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
On Thursday, September 17, 2015 at 1:09:58 PM UTC-7, nouiz
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc
file
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
export THEANORC=...
Fred
<javascript:>>
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have
permissions to
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
create compile directories in $HOME/. So I want to change
THEANORC
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
environment variable to point to my .theanorc file where I
specify
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
base_compiledir=/tmp/theano/. The problem is when I run this
on
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
the
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
cluster, theano still wants to create compile directories in
$HOME/.
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Can you explain how you were able to change THEANORC
globally?
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Thanks again !
On Wednesday, July 22, 2015 at 11:44:01 AM UTC+1, Daniel
Renshaw
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at
your
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
shared
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.theanorc file.
This is described in the documentation [1]
<
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
On 22 July 2015 at 11:34, Abhishek Shivkumar <
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we
want to
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
have
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
just one copy of the .theanorc file that everyone can
access. We
Post by t***@gmail.com
Post by Pascal Lamblin
don't
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
want to put it in everyone's home directory and maintain
multiple
Post by t***@gmail.com
Post by Pascal Lamblin
copies.
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Is there a way to point Theano to the .theanorc file
located
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
at
Post by t***@gmail.com
Post by Pascal Lamblin
any
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
specific location by mentioning the path?
Thanks
Abhishek S
--
---
You received this message because you are subscribed to
the
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails
from
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
Post by Abhishek Shivkumar
For more options, visit
https://groups.google.com/d/optout.
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
Post by Abhishek Shivkumar
Post by Daniel Renshaw
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by Pascal Lamblin
Groups
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
"theano-users" group.
To unsubscribe from this group and stop receiving emails
from
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
it,
Post by t***@gmail.com
Post by Pascal Lamblin
send an
Post by t***@gmail.com
Post by Frédéric Bastien
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the
Google
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
Post by Pascal Lamblin
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from
it,
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
send
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.com
Post by t***@gmail.com
Post by Pascal Lamblin
Post by t***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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/RTH742rtKOY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.com
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ghadeer eresha
2018-06-22 06:39:43 UTC
Permalink
For me this problem was solved when I set the `--conf
"spark.executorEnv.THEANO_FLAGS=base_compiledir=/some/path"` when launching
a new spark shell or submitting an application.
Ex. `spark2-submit --master yarn-client --conf
"spark.executorEnv.THEANO_FLAGS=base_compiledir=/home/samples/.theano"
/python/script`
In this way, you ensure that all the cluster nodes share the same
environment variables not only the master node.
Post by t***@gmail.com
Hi Fred,
Yes this is exactly how I did it. A compile directory was created to where
I specified it, but it still wants to create another one in $HOME/ where I
don't have access to.
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
I am using version 0.6, as this is the approved version by my company.
I see this problem only when I run theano in spark in yarn-cluster mode,
but when I run it in standalone mode everything works perfectly fine and
the performance is great.
The only solution I can think of right now (not ideal) is to modify the
compiledir.py file in site-packages/theano/gof, specifically line 141
instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric Bastien
How did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
Post by t***@gmail.com
Hi Abhishek,
I am also running theano on a cluster and I don't have permissions to
create compile directories in $HOME/. So I want to change THEANORC
environment variable to point to my .theanorc file where I specify
base_compiledir=/tmp/theano/. The problem is when I run this on the
cluster, theano still wants to create compile directories in $HOME/.
Can you explain how you were able to change THEANORC globally?
Thanks.
Post by Abhishek Shivkumar
Thanks Daniel. Not sure how I overlooked that part of the
documentation. Thanks again !
Post by Daniel Renshaw
Yes, change the THEANORC environment variable to point at your shared
.theanorc file.
This is described in the documentation [1]
<http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
.
Daniel
[1]
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
Post by Abhishek Shivkumar
We have Theano installed on a cluster of nodes and we want to have
just one copy of the .theanorc file that everyone can access. We don't
want to put it in everyone's home directory and maintain multiple copies.
Is there a way to point Theano to the .theanorc file located at any
specific location by mentioning the path?
Thanks
Abhishek S
--
---
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,
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...