I think the optimization error is due to "openmp" flag. 

I changed it to False. After that no error.

I wonder will it (openmp=false) effect computation time on GPUs?

Thank you.

On Wednesday, 19 April 2017 20:42:14 UTC+3, nouiz wrote:
>
> Hi,
>
> this seem to be a problem in your environment. Something try to enable 
> OpenMP, but your compiler seem to not support it. It seem an old g++ 
> version. But something seem to have it enabled.
>
> Do you mix multiple g++ in your environment?
>
> Fred
>
> On Wed, Apr 19, 2017 at 9:17 AM Siva Reddy Gangireddy <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> Optimization failure error. Any suggestions on this.
>>
>> 2017-04-19 16:10:16,895 warn: Optimization failure due to: 
>> constant_folding
>> 2017-04-19 16:10:16,896 warn: node: 
>> Elemwise{Cast{float32}}(TensorConstant{(1, 1, 1) of 0})
>> 2017-04-19 16:10:16,896 warn: TRACEBACK:
>> 2017-04-19 16:10:16,896 warn: Traceback (most recent call last):
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/opt.py",
>>  
>> line 1996, in process_node
>>     replacements = lopt.transform(node)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/tensor/opt.py",
>>  
>> line 6497, in constant_folding
>>     no_recycling=[], impl=impl)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/op.py",
>>  
>> line 935, in make_thunk
>>     no_recycling)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/op.py",
>>  
>> line 839, in make_c_thunk
>>     output_storage=node_output_storage)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cc.py",
>>  
>> line 1190, in make_thunk
>>     keep_lock=keep_lock)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cc.py",
>>  
>> line 1131, in __compile__
>>     keep_lock=keep_lock)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cc.py",
>>  
>> line 1586, in cthunk_factory
>>     key=key, lnk=self, keep_lock=keep_lock)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cmodule.py",
>>  
>> line 1159, in module_from_key
>>     module = lnk.compile_cmodule(location)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cc.py",
>>  
>> line 1489, in compile_cmodule
>>     preargs=preargs)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cmodule.py",
>>  
>> line 2348, in compile_str
>>     return dlimport(lib_filename)
>>   File 
>> "/scratch/elec/puhe/Modules/opt/Theano/Theano-bd1a12e/lib/python3.6/site-packages/Theano-0.9.0-py3.6.egg/theano/gof/cmodule.py",
>>  
>> line 302, in dlimport
>>     rval = __import__(module_name, {}, {}, [module_name])
>> ImportError: 
>> /tmp/theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-3.6.0-64/tmp_ooo8vrt/m6d5ed1ac7ff4333b2cf57ce9d9852750.so:
>>  
>> undefined symbol: GOMP_parallel
>>
>> ---
>> Siva
>>
>> -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "theano-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to