← Back to team overview

yade-dev team mailing list archive

Re: scons vs. openMP

 

Previous error fixed locally by disabling the compilation of 
ParallelEngine in scons file.

Next error :
 
pkg/dem/Engine/StandAloneEngine/SQLiteRecorder.cpp: In member function 
'virtual void SQLiteRecorder::action(MetaBody*)':
pkg/dem/Engine/StandAloneEngine/SQLiteRecorder.cpp:70: error: 'join' is 
not a member of 'boost::algorithm'

I guess I need boost 1.34?


Bruno
 
Bruno Chareyre a écrit :
> Next compilation error due to parallel stuff (with "scons openmp=0") :
>
>
>  g++ -o 
> /home/bruno/YADE/build-trunk-opt/pkg/common/Engine/ParallelEngine.os -c 
> -O2 -O3 -ffast-math -pg -pipe -Wall -fPIC -DLOG4CXX -DEMBED_PYTHON 
> -DMINIWM3 -DSUFFIX=\"-trunk-opt\" -DPREFIX=\"/home/bruno/YADE\" 
> -DYADE_CAST=static_cast -DYADE_PTR_CAST=static_pointer_cast -DNDEBUG 
> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk 
> -Iinclude/yade-trunk 
> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk/yade/lib-miniWm3 
> -Iinclude/yade-trunk/yade/lib-miniWm3 -I/usr/share/qt3/include 
> -I/usr/share/qt3/include -I/usr/include/python2.5 
> pkg/common/Engine/ParallelEngine.cpp
> pkg/common/Engine/ParallelEngine.cpp:2:16: error: omp.h: No such file or 
> directory
> pkg/common/Engine/ParallelEngine.cpp:18: warning: ignoring #pragma omp 
> parallel
> distcc[9882] ERROR: compile pkg/common/Engine/ParallelEngine.cpp on 
> localhost failed
> scons: *** 
> [/home/bruno/YADE/build-trunk-opt/pkg/common/Engine/ParallelEngine.os] 
> Error 1
> scons: building terminated because of errors.
>
>
> Bruno Chareyre a écrit :
>   
>> Ah... even after installing openMP, I have this :
>>
>> distcc g++ -o /home/bruno/YADE/build-trunk-opt/core/Body.o -c -O2 
>> -fopenmp -O3 -ffast-math -pg -pipe -Wall -DLOG4CXX -DEMBED_PYTHON 
>> -DMINIWM3 -DSUFFIX=\"-trunk-opt\" -DPREFIX=\"/home/bruno/YADE\" 
>> -DYADE_CAST=static_cast -DYADE_PTR_CAST=static_pointer_cast -DNDEBUG 
>> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk 
>> -Iinclude/yade-trunk 
>> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk/yade/lib-miniWm3 
>> -Iinclude/yade-trunk/yade/lib-miniWm3 -I/usr/share/qt3/include 
>> -I/usr/share/qt3/include -I/usr/include/python2.5 core/Body.cpp
>> cc1plus: error: unrecognized command line option "-fopenmp"
>> distcc g++ -o /home/bruno/YADE/build-trunk-opt/core/BodyContainer.o -c 
>> -O2 -fopenmp -O3 -ffast-math -pg -pipe -Wall -DLOG4CXX -DEMBED_PYTHON 
>> -DMINIWM3 -DSUFFIX=\"-trunk-opt\" -DPREFIX=\"/home/bruno/YADE\" 
>> -DYADE_CAST=static_cast -DYADE_PTR_CAST=static_pointer_cast -DNDEBUG 
>> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk 
>> -Iinclude/yade-trunk 
>> -I/home/bruno/YADE/build-trunk-opt/include/yade-trunk/yade/lib-miniWm3 
>> -Iinclude/yade-trunk/yade/lib-miniWm3 -I/usr/share/qt3/include 
>> -I/usr/share/qt3/include -I/usr/include/python2.5 core/BodyContainer.cpp
>> cc1plus: error: unrecognized command line option "-fopenmp"
>>
>> Bruno
>>
>>
>> Bruno Chareyre a écrit :
>>   
>>     
>>> Sorry if this has been discussed already, but I think a check on OpenMP 
>>> is needed in scons build process.
>>> I had a compilation error because OpenMP was not installed, but scons 
>>> didn't tell that this prerequisite was missing.
>>>
>>> Bruno
>>>
>>>   
>>>     
>>>       
>>   
>>     
>
>   
>>   
>>     
>
>
>   


-- 
 
_______________
Chareyre Bruno
Maitre de conference

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________

_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev



Follow ups

References