Discussion:
[theano-users] WMT16-Scripts Theano error
Abdul Rafae Khan
2017-06-24 18:11:54 UTC
Permalink
I am trying to run
https://github.com/rsennrich/wmt16-scripts/sample/train.sh but facing an
error.
I am using bash on Ubuntu on Windows 10.
Python version = 2.7.12
Theano version = 0.9.0

Thanks for the help.

=========================================================================================
Error pasted below:
Loading data
Building model
Building sampler
Building f_init... Done
Building f_next.. Done
Building f_log_probs... Done
Computing gradient... Done
INFO (theano.gof.compilelock): Refreshing lock
/home/abdul/.theano/compiledir_Linux-4.4--Microsoft-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64/lock_dir/lock
Problem occurred during compilation with the command line below:
/usr/bin/g++ -shared -g -O3 -fno-math-errno -Wno-unused-label
-Wno-unused-variable -Wno-write-strings -march=haswell -mmmx -mno-3dnow
-msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha
-mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2
-mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd
-mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave
-mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf
-mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq
-mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb
-mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param
l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=haswell
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC
-I/home/abdul/.local/lib/python2.7/site-packages/numpy/core/include
-I/usr/include/python2.7
-I/home/abdul/.local/lib/python2.7/site-packages/theano/gof -L/usr/lib
-fvisibility=hidden -o
/home/abdul/.theano/compiledir_Linux-4.4--Microsoft-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64/tmpaQt4lf/0787d739929e5d20add7ad1ee1c9ac61.so
/home/abdul/.theano/compiledir_Linux-4.4--Microsoft-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64/tmpaQt4lf/mod.cpp
-lpython2.7
ERROR (theano.gof.cmodule): [Errno 22] Invalid argument
Building optimizers...
Traceback (most recent call last):
File "config.py", line 40, in <module>
external_validation_script='./validate.sh')
File "build/bdist.linux-x86_64/egg/nematus/nmt.py", line 1214, in train
File "build/bdist.linux-x86_64/egg/nematus/optimizers.py", line 108, in
adadelta
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/compile/function.py",
line 326, in function
output_keys=output_keys)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/compile/pfunc.py",
line 486, in pfunc
output_keys=output_keys)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1795, in orig_function
defaults)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1661, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/link.py",
line 699, in make_thunk
storage_map=storage_map)[:3]
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/vm.py",
line 1047, in make_all
impl=impl))
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/op.py",
line 935, in make_thunk
no_recycling)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/op.py",
line 839, in make_c_thunk
output_storage=node_output_storage)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cc.py",
line 1190, in make_thunk
keep_lock=keep_lock)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cc.py",
line 1131, in __compile__
keep_lock=keep_lock)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cc.py",
line 1586, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 1159, in module_from_key
module = lnk.compile_cmodule(location)
File "/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cc.py",
line 1489, in compile_cmodule
preargs=preargs)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 2294, in compile_str
p_out = output_subprocess_Popen(cmd)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/misc/windows.py",
line 77, in output_subprocess_Popen
p = subprocess_Popen(command, **params)
File
"/home/abdul/.local/lib/python2.7/site-packages/theano/misc/windows.py",
line 43, in subprocess_Popen
proc = subprocess.Popen(command, startupinfo=startupinfo, **params)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child
self.pid = os.fork()
OSError: [Errno 22] Invalid argument
--
---
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...