Page 1 of 1

File locked Error

Posted: 15 Jun 2018, 05:51
by Neeraj
Hi all,

I am trying to run an optimization in Pelegant. I use the command,

Code: Select all

mpiexec -n 6 Pelegant optimizeQ.ele
It works fine as long as my method is 'simplex'. If I change it to anything else, I get an error,

Code: Select all

Error:
Unable to access file optimizedQ.bun--file is locked (SDDS_InitializeOutput)
Error:
Unable to access file optimizedQ.bun--file is locked (SDDS_InitializeOutput)
Error:
Unable to access file optimizedQ.bun--file is locked (SDDS_InitializeOutput)
Error:
Unable to access file optimizedQ.bun--file is locked (SDDS_InitializeOutput)
Error:
Unable to access file optimizedQ.bun--file is locked (SDDS_InitializeOutput)
Where OptimizedQ.bun is the bunch file written by my elegant code. I think all the parallel processes try to access the same bunch file and clashes. Is there any other changes I need to make in existing namelists other than in &parallel_optimization_setup for parallel optimization to work?

Thanks
Neeraj

Re: File locked Error

Posted: 15 Jun 2018, 08:39
by michael_borland
Neeraj,

Can you post your .ele file?

--Michael

Re: File locked Error

Posted: 15 Jun 2018, 09:29
by Neeraj
Please find it attached.

Re: File locked Error

Posted: 15 Jun 2018, 09:46
by michael_borland
Neeraj,

I'm not sure why that file-lock problem occurs, but you can solve it by removing the "bunch = %s.bun" statement from the &bunched_beam command; you don't really need it. Also, set one_random_bunch=1 to avoid confusing the optimizer.

Since you are doing tracking-based optimization, there's no benefit to using parallel_optimization_setup. You are better off using optimization_setup, so that elegant will track in parallel and optimize at the serial level.

--Michael