If you add "nocleanup=True" to the config options (for instance in the
.theanorc), can you see more things in Model_1\compiledir...?
I see a backslash before "Model_1" in the config option, is that
intended, or an artifact of the email? Is it necessary?
What happens if you put the whole path instead?
I see you mention once
compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_63_Stepping_2_GenuineIntel-3.6.1-64,
and then
compiler_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_63_Stepping_2_GenuineIntel-3.6.1-64
with "compiler" instead of "compiledir", is that just a copy/paste error?
On 2018-05-03 09:12 AM, ivan.d.marroq...@gmail.com wrote:
Hi,
I have a windows machine and the content of the .theanorc file is:
[global]
floatX = float32
device = cpu
[nvcc]
fastmath = True
flags = -LC:\Temp\Anaconda3\libs
compiler_bindir = "C:\Temp\Anaconda3\Library\mingw-w64\bin"
[blas]
ldflags = -LC:\Temp\Anaconda3\Library\bin -lmkl_rt
[cuda]
root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
[dnn]
include_path = C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v8.0\include
library_path = C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v8.0\lib\x64
enabled = True
[lib]
cudnn = 1.0
I used Theano 0.9.0 and was able to set up the configuration option
"base_compilerdir" inside a script as follows:
import itertools
import numpy as np
from sklearn import metrics, preprocessing
import matplotlib.pyplot as plt
import time
import os
os.environ["THEANO_FLAGS"]= "base_compiledir=\Model_1"
from functools import partial
from hyperopt import hp, Trials, fmin, tpe, STATUS_OK
from neupy import algorithms, layers, init#, environment, plots
from neupy.exceptions import StopTraining
import random
import pandas as pd
#import shutil
import theano
print(theano.config.base_compiledir)
plt.style.use('ggplot')
theano.config.floatX= 'float32'
Theano was able to create a folder named "Model_1" in the path were the
script was located. Then, Theano was able to compile and run the script
as expected.
Now, I replaced the old Theano by its newest version 1.0.1. When I run
the script, I got this message at the end:
Exception: ('The following error happened while compiling the node',
InplaceDimShuffle{x,0}(layer:tanh-1/bias), '\n', 'Compilation failed
(return status=1):
C:/Temp/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot open output file
C:\\Users\\IMarroquin\\Documents\\My_Python_Scripts\\MLP\\SEG_contest\\Independent_Scripts\\Model_1\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_63_Stepping_2_GenuineIntel-3.6.1-64\\tmphss2exfn\\m885ff006a95d626dac547a7bdfdb471bbf058622ece2b4435e42316c4012ea56.pyd:
No such file or directory\r. collect2.exe: error: ld returned 1 exit
status\r. ', '[InplaceDimShuffle{x,0}(layer:tanh-1/bias)]')
I noticed the following:
a) the folder "Model_1" got created
b) the sub-folder
"compiler_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_63_Stepping_2_GenuineIntel-3.6.1-64"
got created. Inside this sub-folder, I only have another folder named
"lazylinker.ext" and a file name "__init__"
Then, I comment out these lines from the header in the script:
import os
os.environ["THEANO_FLAGS"]= "base_compiledir=\Model_1"
and run the script. Theano uses the default path:
C:\Users\IMarroquin\AppData\Local\Theano. Additionally, Theano creates a
whole series of "tmp...." sub-folders right under the folder
"compiler_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_63_Stepping_2_GenuineIntel-3.6.1-64"
What other configuration variable should I have in my Python script? Any
other suggestions?
Many thanks,
Ivan
--
---
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+unsubscr...@googlegroups.com
<mailto:theano-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
Pascal Lamblin
--
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.