Re: [Valgrind-users] 答复: 答复: 答复: [Help] Valgrind sometime run the program very slowly sometimes , it last at least one hour. can you show me why or some way to analyze it?

2018-01-25 Thread John Reiser
On 01/25/2018 15:37 UTC, Wuweijia wrote: Function1: bool CDynamicScheduling::GetProcLoop( int& nBegin, int& nEndPlusOne) { int curr = __sync_fetch_and_add(&m_nCurrent, m_nStep); How large is 'm_nStep'? [Are you sure?] The overhead expense of switching thread

[Valgrind-users] 答复: 答复: 答复: [Help] Valgrind sometime run the program very slowly sometimes , it last at least one hour. can you show me why or some way to analyze it?

2018-01-25 Thread Wuweijia
Hi About this problem how to analyze why the valgrind slow, I analyze the source code. I found the source to use atomic function __sync_fetch_and_add to finish the job. There are four thread use __sync_fetch_and_add to sync the compute status. The source as below:

[Valgrind-users] 答复: 答复: 答复: [Help] Valgrind sometime run the program very slowly sometimes , it last at least one hour. can you show me why or some way to analyze it?

2018-01-24 Thread Wuweijia
Hi I compile the source in arm32 mode, there is some error occurred, some function lack of param. BR Owen -邮件原件- 发件人: Ivo Raisr [mailto:iv...@ivosh.net] 发送时间: 2018年1月24日 12:36 收件人: Wuweijia 抄送: valgrind-users@lists.sourceforge.net; Fanbohao 主题: Re: 答复: 答复: [Valgrind-users

[Valgrind-users] 答复: 答复: 答复: [Help] Valgrind sometime run the program very slowly sometimes , it last at least one hour. can you show me why or some way to analyze it?

2018-01-23 Thread Wuweijia
Hi I download the source code , and I build arm32 version. That is some different with 3.12. There is onequestion: Question: I build the android -arm32 version, that is some compile error . I need to sure there is no need to include this file? Error as below: ex